json

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package json provides the json functions based on standard library

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal       = json.Marshal
	Unmarshal     = json.Unmarshal
	NewDecoder    = json.NewDecoder
	NewEncoder    = json.NewEncoder
	MarshalIndent = json.MarshalIndent
)

Functions

func MarshalToString

func MarshalToString(v any) string

MarshalToString returns json string, and ignores error

func MustToString

func MustToString(v any) string

MustToString returns json string, or panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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