Skip to content

nsagnett/flattrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flattrim

Make flatmap keeping base value type in Golang

Get library

go get -u github.com/nsagnett/flattrim

How to use

import "github.com/nsagnett/flattrim"
flattrimizer := flattrim.NewFlattrimizer(flattrim.KEEPCASE) /// or LOWERCASE to apply a lower case on result keys
flatmap := flattrimizer.Flatten({someJSONData}) // where {someJSONData} is map[string]interface{}

The difference with some others librairies is flattrim keeps base value types.

About

Make flatmap keeping base value type in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages