pg: github.com/go-pg/pg/pgjson Index | Files

package pgjson

import "github.com/go-pg/pg/pgjson"

Index

Package Files

json.go provider.go

func Marshal Uses

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

func SetProvider Uses

func SetProvider(p Provider)

func Unmarshal Uses

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

type Decoder Uses

type Decoder interface {
    Decode(v interface{}) error
    UseNumber()
}

func NewDecoder Uses

func NewDecoder(r io.Reader) Decoder

type Encoder Uses

type Encoder interface {
    Encode(v interface{}) error
}

func NewEncoder Uses

func NewEncoder(w io.Writer) Encoder

type Provider Uses

type Provider interface {
    Marshal(v interface{}) ([]byte, error)
    Unmarshal(data []byte, v interface{}) error
    NewEncoder(w io.Writer) Encoder
    NewDecoder(r io.Reader) Decoder
}

type SegmentioProvider Uses

type SegmentioProvider struct{}

func (SegmentioProvider) Marshal Uses

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

func (SegmentioProvider) NewDecoder Uses

func (SegmentioProvider) NewDecoder(r io.Reader) Decoder

func (SegmentioProvider) NewEncoder Uses

func (SegmentioProvider) NewEncoder(w io.Writer) Encoder

func (SegmentioProvider) Unmarshal Uses

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

type StdProvider Uses

type StdProvider struct{}

func (StdProvider) Marshal Uses

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

func (StdProvider) NewDecoder Uses

func (StdProvider) NewDecoder(r io.Reader) Decoder

func (StdProvider) NewEncoder Uses

func (StdProvider) NewEncoder(w io.Writer) Encoder

func (StdProvider) Unmarshal Uses

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

Package pgjson imports 3 packages (graph). Updated 2020-03-21. Refresh now. Tools for package owners.