Skip to content

Package for handling arbitrary data types. Defined as hierarchy of data types including map[string]

Notifications You must be signed in to change notification settings

toolateforteddy/arbitrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arbitrary

The goal of this package is to offer utilities for handling well structured though untyped data structures. These data structures often will be found when hydrating unknown data from a json blob, or from a structured file.

Dig

Digging is used for diving into the data to find the value at a specified path.

Flatten

Flatten will walk the whole tree and create a new map[string]interface{} where all values in that map are basic datatypes. The path from the original structure will be converted into a string key. The default joiner will be '.'

Validate

Validate will walk the unstructured data to check that all leaf nodes are valid types.

Hydrate

Hydrate will convert the source arbitrary object into the dest typed object.

About

Package for handling arbitrary data types. Defined as hierarchy of data types including map[string]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages