Documentation ¶
Index ¶
- Constants
- func ReadFile(path string) ([]byte, error)
- func SortMapKeys(m map[string]interface{}) []string
- func SplitPath(path string) (string, string)
- func ToJSON(m map[string]interface{}) ([]byte, error)
- func ToMapStringInterface(i interface{}) map[string]interface{}
- func ToYAML(m map[string]interface{}) ([]byte, error)
- type Keys
Constants ¶
View Source
const (
// Delimiter / delimiter for splitting a path.
Delimiter = "/"
)
Variables ¶
This section is empty.
Functions ¶
func SortMapKeys ¶
SortMapKeys sorts the keys of a map.
func SplitPath ¶ added in v0.0.4
SplitPath splits a given path by / and returns the first element and the joined rest paths.
func ToMapStringInterface ¶ added in v0.0.11
func ToMapStringInterface(i interface{}) map[string]interface{}
ToMapStringInterface takes any value and returns the map string interface.
Types ¶
Click to show internal directories.
Click to hide internal directories.