Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonhelper

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToJson

func MapToJson(input map[string]string) []byte

MapToJson converts a map to a json byte array.

func PrettyPrintJson

func PrettyPrintJson(jsonByte []byte) error

PrettyPrintJson prints the json byte array to the stdout formated.

func StringToJson

func StringToJson(key string, value string) []byte

StringToJson converts a string to a json byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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