mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-02 22:13:06 +00:00
12 lines
196 B
Go
12 lines
196 B
Go
package library
|
|
|
|
import "encoding/json"
|
|
|
|
func marshalJSON(result interface{}) (string, error) {
|
|
data, err := json.Marshal(result)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return string(data), nil
|
|
}
|