Versions in this module Expand all Collapse all v1 v1.0.0 Jul 2, 2019 Changes in this version + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func NewEncoderWithHostname(w io.Writer, host string) *Encoder + func (a *Encoder) Encode(prefix string, val interface{}, tags map[string]string, opts ...Option) error + func (a *Encoder) EncodeMap(prefix string, val map[string]interface{}, tags map[string]string, ...) error + func (a *Encoder) EncodeWithoutTypes(prefix string, val interface{}, tags map[string]string, opts ...Option) error + type Option func(*options) + func WithTime(t time.Time) Option