format

package
v0.0.0-...-0e108c5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyEncode

func PrettyEncode(data interface{}, out io.Writer) error

PrettyEncode : JSON pretty print by encoding value

func PrettyString

func PrettyString(str string) (string, error)

PrettyString : Pretty print JSON string

func PrettyStruct

func PrettyStruct(data interface{}) (string, error)

PrettyStruct : JSON pretty print by marshaling value

func TrimSpaceDashInString

func TrimSpaceDashInString(s string) string

TrimSpaceDashInString : Trim all dash in string

Types

This section is empty.

Jump to

Keyboard shortcuts

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