Documentation ¶
Index ¶
- Variables
- func Exists(p string) bool
- func FixNameExt(dir string, name string) string
- func FixPathExt(p string) string
- func ReadYamlAllBytes(b []byte) ([]interface{}, error)
- func ReadYamlAllFile(p string) ([]interface{}, error)
- func ReadYamlAllStream(r io.Reader) ([]interface{}, error)
- func ReadYamlAllString(s string) ([]interface{}, error)
- func ReadYamlBytes(b []byte, o interface{}) error
- func ReadYamlFile(p string, o interface{}) error
- func ReadYamlStream(r io.Reader, o interface{}) error
- func ReadYamlString(s string, o interface{}) error
- func RemoveDuplicateFields(r io.Reader) ([]byte, error)
- func ValidateStructs(s interface{}) error
- func WriteJsonString(o interface{}) (string, error)
- func WriteJsonStringMust(o interface{}) string
- func WriteYamlAllBytes(l []interface{}) ([]byte, error)
- func WriteYamlAllFile(p string, l []interface{}) error
- func WriteYamlAllStream(w io.Writer, l []interface{}) error
- func WriteYamlAllString(l []interface{}) (string, error)
- func WriteYamlBytes(o interface{}) ([]byte, error)
- func WriteYamlFile(p string, o interface{}) error
- func WriteYamlString(o interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Validator = validator.New()
)
Functions ¶
func FixNameExt ¶
func FixPathExt ¶
func ReadYamlAllBytes ¶
func ReadYamlAllFile ¶
func ReadYamlAllStream ¶
func ReadYamlAllString ¶
func ReadYamlBytes ¶
func ReadYamlFile ¶
func ReadYamlStream ¶
func ReadYamlString ¶
func RemoveDuplicateFields ¶ added in v2.12.6
RemoveDuplicateFields is a helper/hack to remove duplicate fields from yaml maps/structs. The yaml spec explicitly forbids duplicate keys, but yaml.v2 ignored those by default, leading to some tools (e.g. Helm) ignoring these
func ValidateStructs ¶ added in v2.12.6
func ValidateStructs(s interface{}) error
func WriteJsonString ¶ added in v2.14.0
func WriteJsonStringMust ¶ added in v2.20.0
func WriteJsonStringMust(o interface{}) string
func WriteYamlAllBytes ¶
func WriteYamlAllFile ¶
func WriteYamlAllStream ¶
func WriteYamlAllString ¶
func WriteYamlBytes ¶
func WriteYamlFile ¶
func WriteYamlString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.