Documentation ¶
Index ¶
- Constants
- Variables
- type ByteSize
- type Getter
- type ID
- type IDArray
- type IDSet
- type IntSet
- type IntValue
- type Interval
- type Period
- type Setter
- type Time
- type Value
- type ValueArray
- type ValueSet
- func (set *ValueSet) AsArray(out ValueArray)
- func (set *ValueSet) Contains(id ID) bool
- func (set *ValueSet) Delete(toDelete ID)
- func (set *ValueSet) From(other *ValueSet)
- func (set *ValueSet) Get(id ID) Value
- func (set *ValueSet) GetAt(n int) Value
- func (set *ValueSet) IDs() []ID
- func (set *ValueSet) IsEmpty() bool
- func (set *ValueSet) Len() int
- func (set *ValueSet) MarshalJSON() ([]byte, error)
- func (set *ValueSet) Set(vv ...Value)
- func (set *ValueSet) SetAt(n int, v Value)
- func (set *ValueSet) TestAsArray(out ValueArray)
- func (set *ValueSet) TestIDs() []string
- func (set *ValueSet) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const ( EveryWeek = "everyWeek" EveryDay = "everyDay" EveryTwoWeeks = "everyTwoWeeks" EveryMonth = "everyMonth" EveryDuration = "everyDuration" )
View Source
const ( DateFormat = "2006-01-02" DateFormatTZ = "2006-01-02MST" TimeFormat = "2006-01-02T15:04" TimeFormatTZ = "2006-01-02T15:04MST" )
Variables ¶
View Source
var EST, PST *time.Location
Exposed for testing other packages
View Source
var IDArrayProto = &IDArray{}
Functions ¶
This section is empty.
Types ¶
type IDArray ¶
type IDArray []ID
func (IDArray) InstanceOf ¶
func (p IDArray) InstanceOf() ValueArray
type IDSet ¶
type IDSet struct {
ValueSet
}
func (*IDSet) MarshalJSON ¶
func (*IDSet) UnmarshalJSON ¶
type IntSet ¶
type IntSet struct {
ValueSet
}
func (*IntSet) MarshalJSON ¶
func (*IntSet) UnmarshalJSON ¶
type IntValue ¶
func NewIntValue ¶
type Period ¶
func (*Period) AverageDuration ¶
type Time ¶
func MustParseTime ¶
func (*Time) MarshalJSON ¶
func (*Time) Set ¶
Set implements pflag.Var, treats the parameter as UTC; to parse local times, use t.In(location) before calling fs.Parse().
func (*Time) UnmarshalJSON ¶
type ValueArray ¶
type ValueSet ¶
type ValueSet struct {
// contains filtered or unexported fields
}
func NewValueSet ¶
func NewValueSet(proto ValueArray, vv ...Value) *ValueSet
func (*ValueSet) AsArray ¶
func (set *ValueSet) AsArray(out ValueArray)
func (*ValueSet) MarshalJSON ¶
func (*ValueSet) TestAsArray ¶
func (set *ValueSet) TestAsArray(out ValueArray)
func (*ValueSet) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.