Replies: 1 comment
-
logger:=ctx.GetContext("logger").(LoggerPo) 另外这种强制转换,最好用两个返回值的方式进行处理,通过bool返回值判断是否转换成功,避免panic |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在开发wasm插件时,需要将请求头的内容封装成一个struct对象,再把对象写到context中,然后在onHttpRequestBody方法中使用这个context对象,在开发过程中,出现了多次wasm vm崩溃的情况。
Beta Was this translation helpful? Give feedback.
All reactions