encoding

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) string

func Base64Encode

func Base64Encode(bs []byte) string

func Base64EncodeString

func Base64EncodeString(s string) string

func JsonDecode

func JsonDecode(str interface{}, ele interface{}) error

func JsonEncode

func JsonEncode(s interface{}, opts ...Opt) string

Types

type Opt

type Opt uint8
const (
	OptEscapeHtml Opt = 1 << 1

	OptIndentTab Opt = 1 << 2
)

func (Opt) Apply

func (opt Opt) Apply(enc *json.Encoder)

Jump to

Keyboard shortcuts

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