json

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PatchOpAdd     = "add"
	PatchOpRemove  = "remove"
	PatchOpReplace = "replace"
)

http://jsonpatch.com/

Variables

This section is empty.

Functions

func GenerateArrayBytes

func GenerateArrayBytes(objects [][]byte) []byte

func GenerateObjectBytes

func GenerateObjectBytes(fields []FieldBytes) []byte

Types

type FieldBytes

type FieldBytes struct {
	Name      string
	Bytes     []byte
	OmitEmpty bool
}

type Patch

type Patch struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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