nicoxb

Results 4 comments of nicoxb

in addition those case, I find a new case: if you write a comment after the statement, you could not go to the `Message` definatioin; like: `SomeMessage msg = 1;...

> Hello thank you for the PR, can you elaborate some more on the issue this resolved, with perhaps on some steps on how to reproduce. I just want to...

检测是`json`数据时, 使用jsonUnmarshal; 检测是xml时, 使用xmlUnmarshal; 其他情况使用jsonUnmarshal; 所以想要获取原始数据,可以使用: ```go var result json.RawMessage SetSuccessResult(&result) ``` 如果是xml内容, 你可以仿照json.RawMessage, 实现一个 xml.RawMessage

> var result string SetSuccessResult(&result) > > 这样无法正常获取 必须要 resp.body 的方式获取吗? ```go package test import ( "errors" "fmt" "testing" "github.com/imroc/req/v3" ) func RawMessageUnmarshal(data []byte, v any) (err error) { if...