utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectArray

func ConnectArray(strList []string, connector string) string

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 FormatJson(obj any) string

func FormatJsonByte added in v0.4.0

func FormatJsonByte(obj any) []byte

func PrettifyJson added in v0.4.0

func PrettifyJson(raw string) string

func PrettyJsonPrintln added in v0.4.0

func PrettyJsonPrintln(obj any)

func SimpleMarshal added in v0.4.0

func SimpleMarshal(obj any) []byte

func SimpleStringify added in v0.4.0

func SimpleStringify(obj any) string

func Stringify added in v0.4.0

func Stringify(obj any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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