Discover Packages
github.com/joyent/containerpilot
config
decode
package
Version:
v0.0.0-...-8018142
Opens a new window with list of versions in this module.
Published: Feb 9, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 16
Opens a new window with list of known importers.
README
README
¶
decode
Expand ▾
Collapse ▴
Documentation
¶
Package decode contains helper functions for turning mapstructure
interfaces into simpler structs for configs
func ToSlice(raw interface{}) []interface{}
ToSlice converts an interface{} to a slice of interfaces{}
ToStrings converts the given interface{} to a []string, or returns an error.
In the case where the argument is a string already, will wrap the arg in
a slice.
func ToStruct(raw interface{}, result interface{}) error
ToStruct decodes a raw interface{} into the target struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.