MessagePack
type Data struct {
Message string `msgpack:"message"`
}
func handler(ctx iris.Context) {
response := Data{Message: "a message"}
ctx.MsgPack(response)
}\x81\xa7message\xa9a messageLast updated
Was this helpful?
type Data struct {
Message string `msgpack:"message"`
}
func handler(ctx iris.Context) {
response := Data{Message: "a message"}
ctx.MsgPack(response)
}\x81\xa7message\xa9a messageLast updated
Was this helpful?
Was this helpful?