1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

#75 support MarshalIndent

This commit is contained in:
Tao Wen
2017-06-29 20:48:27 +08:00
parent 1253b8edd3
commit 678c297af3
4 changed files with 32 additions and 7 deletions

View File

@ -51,6 +51,10 @@ func Marshal(v interface{}) ([]byte, error) {
return ConfigDefault.Marshal(v)
}
func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) {
return ConfigDefault.MarshalIndent(v, prefix, indent)
}
func MarshalToString(v interface{}) (string, error) {
return ConfigDefault.MarshalToString(v)
}