Documentation ¶
Index ¶
- func Check(err error) bool
- func Debug(a ...interface{})
- func Debugc(fn func() string)
- func Debugf(format string, a ...interface{})
- func Debugs(a interface{})
- func Error(a ...interface{})
- func Errorc(fn func() string)
- func Errorf(format string, a ...interface{})
- func Errors(a interface{})
- func Fatal(a ...interface{})
- func Fatalc(fn func() string)
- func Fatalf(format string, a ...interface{})
- func Fatals(a interface{})
- func Info(a ...interface{})
- func Infoc(fn func() string)
- func Infof(format string, a ...interface{})
- func Infos(a interface{})
- func Trace(a ...interface{})
- func Tracec(fn func() string)
- func Tracef(format string, a ...interface{})
- func Traces(a interface{})
- func Warn(a ...interface{})
- func Warnc(fn func() string)
- func Warnf(format string, a ...interface{})
- func Warns(a interface{})
- type Container
- type Serializer
- type Serializers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct {
Data []byte
}
func (*Container) Get ¶
Get returns the bytes that can be imported into an interface assuming the types are correct - field ordering is hard coded by the creation and identified by the magic.
This is all read only and subslices so it should generate very little garbage or copy operations except as required for the output (we aren't going to go unsafe here, it isn't really necessary since already this library enables avoiding the decoding of values not being used from a message (or not used yet)
type Serializer ¶
type Serializers ¶
type Serializers []Serializer
func (Serializers) CreateContainer ¶
func (srs Serializers) CreateContainer(magic []byte) (out *Container)
CreateContainer takes an array of serializer interface objects and renders the data into bytes
Click to show internal directories.
Click to hide internal directories.