Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingTypeKey = errors.New("missing 'type' on command") ErrMissingStepsKey = errors.New("missing 'steps' on command") )
Functions ¶
Types ¶
type JSON ¶
type JSON struct { // Content is the content of the json in bytes. Content []byte Environment environment.Environment }
JSON spec format.
func FromJSONBytes ¶
func FromJSONBytes(json []byte, environment environment.Environment) *JSON
FromJSONBytes returns a JSON from a byte array.
func FromJSONFile ¶
func FromJSONFile(path string, environment environment.Environment) (*JSON, error)
FromJSONFile given a path returns a JSON struct instance.
Click to show internal directories.
Click to hide internal directories.