json

package
v0.1.3-0...-3c80581 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 6 Imported by: 0

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 Marshal

func Marshal(es []Value) ([]byte, error)

Marshal values.

func Unmarshal

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

Unmarshal bytes.

Types

type Value

type Value interface {
	Marshal() (string, error)
}

Value to string.

func NewInt

func NewInt(key string, value int) Value

NewInt ...

func NewString

func NewString(key string, value string) Value

NewString ...

Jump to

Keyboard shortcuts

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