memos/server/common.go

12 lines
153 B
Go
Raw Normal View History

2022-02-04 12:06:04 +03:00
package server
func composeResponse(data interface{}) interface{} {
type R struct {
Data interface{} `json:"data"`
}
return R{
Data: data,
}
}