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

package json

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


Package Files


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 2021-01-19. Refresh now. Tools for package owners.