Documentation ¶
Index ¶
- Variables
- type Chan
- type Map
- func (m Map) Contains(key string) bool
- func (m Map) Cover(src Map)
- func (m Map) Find(key string) interface{}
- func (m Map) Get(key string) interface{}
- func (m Map) Keys() []string
- func (m Map) Merge(src Map)
- func (m Map) Remove(key string)
- func (m Map) Set(key string, value interface{}) Map
- func (m Map) TryGet(key string) (v interface{}, ok bool)
- type Option
- type Options
- type ReadChan
- type Value
- type WriteChan
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Empty is a empty struct instance. Empty = struct{}{} Nil Value = nilValue{} ErrNilValue = errors.New("nil value") )
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan chan struct{}
Chan is a simple notification channel
func (Chan) Receive ¶
func (c Chan) Receive()
Receive receives a notification from channel. It blocks if channel is empty.
func (Chan) Send ¶
func (c Chan) Send()
Send sends a notification to channel. It blocks if channel is full.
func (Chan) TryReceive ¶
TryReceive receives a notification from channel. It returns false if channel is empty.
type Map ¶
type Map map[string]interface{}
type Option ¶
type Option struct { Name string `json:"name" xml:"name,attr"` Value string `json:"value" xml:"value,attr"` }
func ParseOption ¶
type ReadChan ¶
type ReadChan <-chan struct{}
ReadChan is a receive-only notification channel
func (ReadChan) Receive ¶
func (c ReadChan) Receive()
Receive receives a notification from channel. It blocks if channel is empty.
func (ReadChan) TryReceive ¶
TryReceive receives a notification from channel. It returns false if channel is empty.
type Value ¶
type Value interface { IsNil() bool Scan(i interface{}) error Bytes() ([]byte, error) Bool() (bool, error) String() (string, error) Int() (int, error) Int8() (int8, error) Int16() (int16, error) Int32() (int32, error) Int64() (int64, error) Uint() (uint, error) Uint8() (uint8, error) Uint16() (uint16, error) Uint32() (uint32, error) Uint64() (uint64, error) Float32() (float32, error) Float64() (float64, error) }
Click to show internal directories.
Click to hide internal directories.