mirror of
https://github.com/fumiama/go-onebot-agent.git
synced 2026-06-05 02:00:23 +08:00
19 lines
299 B
Go
19 lines
299 B
Go
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())
|
|
}
|