1
1
mirror of https://github.com/usememos/memos.git synced 2024-12-29 06:12:49 +03:00
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,
}
}