Documentation ¶
Index ¶
- Variables
- func AddFlags(into Mut, flags Map) (err error)
- type Context
- type DefaulSerializer
- type ErrMut
- func (e *ErrMut) BoolFlagIf(prefix string, mode Mode, b bool)
- func (e *ErrMut) LongBoolFlag(prefix string, b bool)
- func (e *ErrMut) SetBoolFlag(prefix string, mode Mode)
- func (e *ErrMut) SetFlag(prefix Flag, value string)
- func (e *ErrMut) SetLongBoolFlag(prefix string)
- func (e *ErrMut) SetLongFlag(prefix string, value string)
- func (e *ErrMut) SetShortBoolFlag(prefix string)
- func (e *ErrMut) SetShortFlag(prefix string, value string)
- func (e *ErrMut) ShortBoolFlag(prefix string, b bool)
- type Flag
- type Formatter
- type Manager
- type Map
- type Marshaller
- type Mode
- type Mut
- type SerializeCtx
- type SerializeFn
- type Serializer
- type SerializerFns
- type Serializers
- type TypeSerialize
- type ValueKind
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMarhsallerNotImplemented = fmt.Errorf("MarshalFlags function not implemented")
Functions ¶
Types ¶
type DefaulSerializer ¶
type DefaulSerializer struct{}
func (DefaulSerializer) SerializeFlags ¶
func (d DefaulSerializer) SerializeFlags(val interface{}, into *ErrMut) (err error)
type ErrMut ¶
type ErrMut struct {
// contains filtered or unexported fields
}
func (*ErrMut) LongBoolFlag ¶
func (*ErrMut) SetBoolFlag ¶
func (*ErrMut) SetLongBoolFlag ¶
func (*ErrMut) SetLongFlag ¶
func (*ErrMut) SetShortBoolFlag ¶
func (*ErrMut) SetShortFlag ¶
func (*ErrMut) ShortBoolFlag ¶
type Manager ¶
type Manager struct { Formatter Formatter Serializer Serializer Context Context }
type Marshaller ¶
type SerializeCtx ¶
type SerializeCtx struct { Serializer Serializer Into *ErrMut }
type SerializeFn ¶
type SerializeFn func(ctx SerializeCtx) (err error)
type Serializer ¶
type SerializerFns ¶
type SerializerFns map[interface{}]SerializeFn
type Serializers ¶
type Serializers map[reflect.Type]SerializeFn
type TypeSerialize ¶
type TypeSerialize struct {
// contains filtered or unexported fields
}
func (TypeSerialize) SerializeFlags ¶
func (t TypeSerialize) SerializeFlags(val interface{}, into *ErrMut) (err error)
Click to show internal directories.
Click to hide internal directories.