Documentation ¶
Index ¶
- func Marshal2PrettyString(v interface{}) string
- func Marshal2String(v interface{}) string
- func MustMarshal2PrettyString(v interface{}) string
- func MustMarshal2String(v interface{}) string
- func RemoveListFields(config, live []interface{}) []interface{}
- func RemoveMapFields(config, live map[string]interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal2PrettyString ¶
func Marshal2PrettyString(v interface{}) string
Marshal2PrettyString marshal to pretty string
func MustMarshal2PrettyString ¶
func MustMarshal2PrettyString(v interface{}) string
MustMarshal2PrettyString marshal to pretty string and panic on error
func MustMarshal2String ¶
func MustMarshal2String(v interface{}) string
MustMarshal2String marshal to string and panic on error
func RemoveListFields ¶
func RemoveListFields(config, live []interface{}) []interface{}
If live is longer than config, then the extra elements at the end of the list will be returned as-is so they appear in the diff.
func RemoveMapFields ¶
RemoveMapFields remove all non-existent fields in the live that don't exist in the config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.