Documentation
¶
Index ¶
- func ConnectArray(strList []string, connector string) string
- func FormatJson(obj any) string
- func FormatJsonByte(obj any) []byte
- func PrettifyJson(raw string) string
- func PrettyJsonPrintln(obj any)
- func SimpleMarshal(obj any) []byte
- func SimpleStringify(obj any) string
- func Stringify(obj any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectArray ¶
Connect the items in an array with "connector".
Example:
ConnectArray([]string{"one", "year", "old"}, "-") = "one-year-old"
func FormatJson ¶ added in v0.4.0
func FormatJsonByte ¶ added in v0.4.0
func PrettifyJson ¶ added in v0.4.0
func PrettyJsonPrintln ¶ added in v0.4.0
func PrettyJsonPrintln(obj any)
func SimpleMarshal ¶ added in v0.4.0
func SimpleStringify ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.