Documentation ¶
Index ¶
- func LoadYaml(path string, out interface{}) error
- func Marshal(value interface{}) ([]byte, error)
- func MarshalString(value interface{}) (string, error)
- func MustJSON(value interface{}) string
- func MustMarshalString(value interface{}) string
- func MustYaml(value interface{}) string
- func SaveYaml(path string, value interface{}) error
- func TryLoadYaml(path string, out interface{}) bool
- func Unmarshal(b []byte, out interface{}) error
- func UnmarshalString(s string, out interface{}) error
- func Yamlize(y string) string
- type FromPathSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalString ¶
func MustMarshalString ¶
func MustMarshalString(value interface{}) string
MustMarshallString marshals the value to a string and panics if there is an error.
func TryLoadYaml ¶
TryLoadYaml tries to load something and returns false if it couldn't
func UnmarshalString ¶
Types ¶
type FromPathSetter ¶
type FromPathSetter interface {
SetFromPath(fp string)
}
Click to show internal directories.
Click to hide internal directories.