phperjson

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: MIT Imports: 12 Imported by: 1

README

go-phper-json

PHP flavored encoding/json package

GoDoc

Documentation

Overview

Package phperjson is PHP flavored encoding/json package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compact

func Compact(dst *bytes.Buffer, src []byte) error

Compact is an alias for json.Compact.

func HTMLEscape

func HTMLEscape(dst *bytes.Buffer, src []byte)

HTMLEscape is an alias for json.HTMLEscape.

func Indent

func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error

Indent is an alias for json.Indent.

func Marshal

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

Marshal is an alias for json.Marshal.

func MarshalIndent

func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)

MarshalIndent is an alias for json.MarshalIndent.

func Unmarshal

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

func Valid

func Valid(data []byte) bool

Valid is an alias for json.Valid.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder is a wrapper of json.Decoder.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Buffered

func (dec *Decoder) Buffered() io.Reader

func (*Decoder) Decode

func (dec *Decoder) Decode(v interface{}) error

func (*Decoder) DisallowUnknownFields

func (dec *Decoder) DisallowUnknownFields()

func (*Decoder) More

func (dec *Decoder) More() bool

func (*Decoder) Token

func (dec *Decoder) Token() (json.Token, error)

func (*Decoder) UseNumber

func (dec *Decoder) UseNumber()

type Delim

type Delim = json.Delim

Delim is an alias for json.Delim.

type Encoder

type Encoder = json.Encoder

Encoder is an alias for json.Encoder.

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder is an alias for json.NewEncoder.

type InvalidUTF8Error

type InvalidUTF8Error = json.InvalidUTF8Error

InvalidUTF8Error is an alias for json.InvalidUTF8Error.

type InvalidUnmarshalError

type InvalidUnmarshalError = json.InvalidUnmarshalError

InvalidUnmarshalError is an alias for json.InvalidUnmarshalError.

type Marshaler

type Marshaler = json.Marshaler

Marshaler is an alias for json.Marshaler.

type MarshalerError

type MarshalerError = json.MarshalerError

MarshalerError is an alias for json.MarshalerError.

type Number

type Number = json.Number

Number is an alias for json.Number.

type RawMessage

type RawMessage = json.RawMessage

RawMessage is an alias for json.RawMessage.

type SyntaxError

type SyntaxError = json.SyntaxError

SyntaxError = json.SyntaxError.

type Token

type Token = json.Token

Token is an alias for json.Token.

type UnmarshalFieldError

type UnmarshalFieldError = json.UnmarshalFieldError

UnmarshalFieldError is an alias for json.UnmarshalFieldError.

type UnmarshalTypeError

type UnmarshalTypeError = json.UnmarshalTypeError

UnmarshalTypeError is an alias for json.UnmarshalTypeError.

type Unmarshaler

type Unmarshaler = json.Unmarshaler

Unmarshaler is an alias for json.Unmarshaler.

type UnsupportedTypeError

type UnsupportedTypeError = json.UnsupportedTypeError

UnsupportedTypeError is an alias for json.UnsupportedTypeError.

type UnsupportedValueError

type UnsupportedValueError = json.UnsupportedValueError

UnsupportedValueError is an alias for json.UnsupportedValueError.

Jump to

Keyboard shortcuts

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