Skip to content

otiai10/jsonindent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Indent for Go Just for Enjoying Code Golf ⛳

You Ain't Gonna Need This

Because this is just a shorthand for json.Encoder.SetIndet.

jsonindent.NewEncoder(w).Encode(v)
// is equivalent to
// encoder := json.NewEncoder(w)
// encoder.SetIndent("", "\t")
// encoder.Encode(v)

Build Status GoDoc

About

Golang JSON Indent Encoder with io.Writer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages