json

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package json provides a simpler JSON marshaller for strings and ints only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int added in v0.1.4

func Int(key string, value int) encoding.TextMarshaler

Int ...

func Marshal

func Marshal(vals ...encoding.TextMarshaler) ([]byte, error)

Marshal values.

func String added in v0.1.4

func String(key string, value string) encoding.TextMarshaler

String ...

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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