package utils import "encoding/json" func ToBytes(data interface{}) []byte { b, _ := json.Marshal(data) return b }