Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 310 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 310 Bytes

orderedmap

Ordered map with JSON utility

Usage

dict := OrderedMap{
    {"firstName", "Julius"},
    {"lastName", "Caesar"},
    {"age", 50},
}
json, err := json.Marshal(dict)

if err != nil {
    fmt.Printf("JSON for order map error: %s", err)
} else {
    fmt.Printf("JSON %s", string(json))
}