jsonhelper

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 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