10 lines
165 B
Go
10 lines
165 B
Go
package jsonutils
|
|
|
|
import "encoding/json"
|
|
|
|
func ConvertToJSON(g interface{}) []byte {
|
|
g_json, err := json.Marshal(g)
|
|
_ = err //TODO: Check Errors
|
|
return g_json
|
|
}
|