json

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 4 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) (eosc.IFormatter, error)

func ParseConfig

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

Types

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(cfg eosc.FormatterConfig) (eosc.IFormatter, error)

Jump to

Keyboard shortcuts

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