json

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Variable  filedType = "variable"
	Constants filedType = "constants"
	Object    filedType = "object"
	Array     filedType = "array"
)
View Source
const Name = "json"
View Source
const (
	ROOT = "fields"
)

Variables

View Source
var ConfigFormatError = fmt.Errorf("config is not valid")

Functions

func NewFormatter

func NewFormatter(cfg eosc.FormatterConfig, ctRs []contentResize) (eosc.IFormatter, error)

func ParseConfig

func ParseConfig(root []string, cfg eosc.FormatterConfig) ([]fieldInfo, error)

Types

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(cfg eosc.FormatterConfig, extendCfg ...interface{}) (eosc.IFormatter, error)

type IAttrHandler

type IAttrHandler interface {
	Handle(value interface{}, t filedType) (interface{}, bool)
}

Jump to

Keyboard shortcuts

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