json

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal2PrettyString

func Marshal2PrettyString(v interface{}) string

Marshal2PrettyString marshal to pretty string

func Marshal2String

func Marshal2String(v interface{}) string

Marshal2String marshal to 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

func RemoveMapFields(config, live map[string]interface{}) map[string]interface{}

RemoveMapFields remove all non-existent fields in the live that don't exist in the config

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL