forked from mirror/go-json
8 lines
126 B
Go
8 lines
126 B
Go
|
package json
|
||
|
|
||
|
func Marshal(v interface{}) ([]byte, error) {
|
||
|
enc := NewEncoder()
|
||
|
defer enc.Release()
|
||
|
return enc.Encode(v)
|
||
|
}
|