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)
}
Click to show internal directories.
Click to hide internal directories.