xorm: xorm.io/xorm/internal/json Index | Files

package json

import "xorm.io/xorm/internal/json"

Index

Package Files

json.go

type JSONInterface Uses

type JSONInterface interface {
    Marshal(v interface{}) ([]byte, error)
    Unmarshal(data []byte, v interface{}) error
}

JSONInterface represents an interface to handle json data

var (
    // DefaultJSONHandler default json handler
    DefaultJSONHandler JSONInterface = StdJSON{}
)

type StdJSON Uses

type StdJSON struct{}

StdJSON implements JSONInterface via encoding/json

func (StdJSON) Marshal Uses

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

Marshal implements JSONInterface

func (StdJSON) Unmarshal Uses

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

Unmarshal implements JSONInterface

Package json imports 1 packages (graph) and is imported by 3 packages. Updated 2020-08-08. Refresh now. Tools for package owners.