mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-10 13:00:44 +08:00
fix: marshal APIResponse error
This commit is contained in:
18
types_test.go
Normal file
18
types_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package goba
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMarshalAPIResponse(t *testing.T) {
|
||||
rsp := &APIResponse{
|
||||
Status: "error",
|
||||
Data: []byte(`null`),
|
||||
Message: "12345",
|
||||
}
|
||||
t.Log(rsp.String())
|
||||
rsp = &APIResponse{
|
||||
Status: "error",
|
||||
Data: []byte(``),
|
||||
Message: "12345",
|
||||
}
|
||||
t.Log(rsp.String())
|
||||
}
|
||||
Reference in New Issue
Block a user