formatter

package
v0.0.0-...-82d4d01 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFunc

func RegisterFunc(f Func)

Types

type Formatter

type Formatter interface {
	Format(space []byte, kv []interface{}) []byte
}

func Of

func Of(formatStr string, sample []interface{}) Formatter

type Func

type Func interface {
	FuncName() string
	FormatterOf(funcArgs []string, sample []interface{}, id string) Formatter
}

type FuncFormatter

type FuncFormatter func(space []byte, kv []interface{}) []byte

func (FuncFormatter) Format

func (f FuncFormatter) Format(space []byte, kv []interface{}) []byte

Source Files

  • binary.go
  • formatter.go
  • invalid.go
  • json.go
  • literal.go
  • string.go
  • time.go

Jump to

Keyboard shortcuts

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