appier/util.go

10 lines
135 B
Go
Raw Normal View History

2022-03-23 02:12:54 +00:00
package appier
import "encoding/json"
// toBytes ...
func toBytes(data interface{}) []byte {
b, _ := json.Marshal(data)
return b
}