Documentation ¶
Index ¶
- func GetBoolFlag(key string) bool
- func GetFlag(key, fallback string) string
- func MarshalLocalYAMLFile(path string, obj interface{}) error
- func ReadRemoteFile(url string) ([]byte, error)
- func UnmarshalLocalFile(path string, obj interface{}) error
- func UnmarshalRemoteFile(url string, obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolFlag ¶ added in v0.12.0
func MarshalLocalYAMLFile ¶ added in v0.7.0
MarshalLocalYAMLFile writes JSON or YAML to a file on disk. The caller is responsible for checking error return values.
func ReadRemoteFile ¶ added in v0.9.0
ReadRemoteFile issues a GET request to retrieve the contents of the specified URL as a byte array. The caller is responsible for checking error return values.
func UnmarshalLocalFile ¶ added in v0.7.0
UnmarshalLocalFile retrieves JSON or YAML from a file on disk. The caller is responsible for checking error return values.
func UnmarshalRemoteFile ¶ added in v0.7.0
UnmarshalRemoteFile retrieves JSON or YAML through a GET request. The caller is responsible for checking error return values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.