jsonx

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prettify

func Prettify(o any) string

Prettify use json.MarshalIndent(o, "", " ") to convert `o` to json string return "" if `o` is nil. return error string if json marshal raise error.

func Stringify

func Stringify(o any) string

Stringify use json.Marshal(o) to convert `o` to json string return "" if `o` is nil. return error string if json marshal raise error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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