package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Functions

Asset loads and returns the asset for the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
ContainsString checks if we have a string in a string list.
DecodeYAMLLibObject decodes interface formatyaml.v2 lib returns map as map[interface{}]interface{} while gohan lib uses map[string]interface{}so we need to convert it here.
ExitFatal ...
ExitFatalf ...
ExtendMap extends a map from existing one.
ExtendStringList appends a value if it isn't in base list.
GetByJSONPointer returns subdata of json using json pointer.
GetConfig returns configuration data.
GetContent loads file from remote or local.
GetEnvMap reads environment vars and return key value.
GetSortedKeys returns sorted keys of map[string]interface{}.
Index return index of elem in slice.
LoadFile loads object from file.
LoadMap loads map object from file.
LoadTemplate loads object from file.
Match if a contrains b or a == b.
MatchAsJSON checks whether the provided arguments are equivalent after being marshalled as JSONs.
MaybeInt tries cast to int otherwise returns 0.
MaybeList tries cast to list otherwise returns empty object.
MaybeMap returns empty map if data is nil.
MaybeString returns "" if data is nil.
MaybeStringList returns empty list if data is nil.
MustAsset is like Asset but panics when Asset would return an error.
NewCounter makes atomic counter.
PublicKeyFile read file and return ssh public keys.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
SaveFile saves object to file.
TempFile creates a temporary file with the specified prefix and suffix.

# Structs

Config stores configuration parameters for api server.
Counter represents atomic counter.