Documentation ¶
Index ¶
- type Calendar
- func (v *Calendar) AddEntry(e Entry) error
- func (v *Calendar) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Calendar) Entries() <-chan Entry
- func (v *Calendar) GetProperty(name string) (*Property, bool)
- func (v *Calendar) MarshalJSON() ([]byte, error)
- func (v *Calendar) Properties() <-chan *Property
- func (v *Calendar) String() string
- func (v Calendar) Type() string
- type Daylight
- func (v *Daylight) AddEntry(e Entry) error
- func (v *Daylight) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Daylight) Entries() <-chan Entry
- func (v *Daylight) GetProperty(name string) (*Property, bool)
- func (v *Daylight) MarshalJSON() ([]byte, error)
- func (v *Daylight) Properties() <-chan *Property
- func (v *Daylight) String() string
- func (v Daylight) Type() string
- type Encoder
- type Entry
- type EntryList
- type Event
- func (v *Event) AddEntry(e Entry) error
- func (v *Event) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Event) Entries() <-chan Entry
- func (v *Event) GetProperty(name string) (*Property, bool)
- func (v *Event) MarshalJSON() ([]byte, error)
- func (v *Event) Properties() <-chan *Property
- func (v *Event) String() string
- func (v Event) Type() string
- type JSONEncoder
- type Option
- type Parameters
- type Parser
- type Property
- type PropertyOption
- type PropertySet
- type Standard
- func (v *Standard) AddEntry(e Entry) error
- func (v *Standard) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Standard) Entries() <-chan Entry
- func (v *Standard) GetProperty(name string) (*Property, bool)
- func (v *Standard) MarshalJSON() ([]byte, error)
- func (v *Standard) Properties() <-chan *Property
- func (v *Standard) String() string
- func (v Standard) Type() string
- type Timezone
- func (v *Timezone) AddEntry(e Entry) error
- func (v *Timezone) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Timezone) Entries() <-chan Entry
- func (v *Timezone) GetProperty(name string) (*Property, bool)
- func (v *Timezone) MarshalJSON() ([]byte, error)
- func (v *Timezone) Properties() <-chan *Property
- func (v *Timezone) String() string
- func (v Timezone) Type() string
- type Todo
- func (v *Todo) AddEntry(e Entry) error
- func (v *Todo) AddProperty(key, value string, options ...PropertyOption) error
- func (v *Todo) Entries() <-chan Entry
- func (v *Todo) GetProperty(name string) (*Property, bool)
- func (v *Todo) MarshalJSON() ([]byte, error)
- func (v *Todo) Properties() <-chan *Property
- func (v *Todo) String() string
- func (v Todo) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calendar ¶
type Calendar struct {
// contains filtered or unexported fields
}
func NewCalendar ¶
func NewCalendar() *Calendar
func (*Calendar) AddProperty ¶
func (v *Calendar) AddProperty(key, value string, options ...PropertyOption) error
func (*Calendar) MarshalJSON ¶
func (*Calendar) Properties ¶
type Daylight ¶
type Daylight struct {
// contains filtered or unexported fields
}
func NewDaylight ¶
func NewDaylight() *Daylight
func (*Daylight) AddProperty ¶
func (v *Daylight) AddProperty(key, value string, options ...PropertyOption) error
func (*Daylight) MarshalJSON ¶
func (*Daylight) Properties ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EncodeProperty ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) AddProperty ¶
func (v *Event) AddProperty(key, value string, options ...PropertyOption) error
func (*Event) MarshalJSON ¶
func (*Event) Properties ¶
type JSONEncoder ¶
type JSONEncoder struct {
// contains filtered or unexported fields
}
func NewJSONEncoder ¶
func NewJSONEncoder(dst io.Writer) *JSONEncoder
func (*JSONEncoder) Encode ¶
func (enc *JSONEncoder) Encode(e Entry) error
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithVCal10 ¶
type Parameters ¶
func (Parameters) Add ¶
func (p Parameters) Add(name, value string)
type Property ¶
type Property struct {
// contains filtered or unexported fields
}
func NewProperty ¶
func NewProperty(name, value string, params Parameters) *Property
func (Property) Parameters ¶
func (p Property) Parameters() Parameters
type PropertyOption ¶
type PropertyOption interface { Name() string Get() interface{} }
func WithForce ¶
func WithForce(b bool) PropertyOption
func WithParameters ¶
func WithParameters(p Parameters) PropertyOption
type PropertySet ¶
type PropertySet struct {
// contains filtered or unexported fields
}
func NewPropertySet ¶
func NewPropertySet() *PropertySet
func (*PropertySet) Append ¶
func (s *PropertySet) Append(p *Property)
func (*PropertySet) Iterator ¶
func (s *PropertySet) Iterator() <-chan *Property
func (*PropertySet) Set ¶
func (s *PropertySet) Set(p *Property)
type Standard ¶
type Standard struct {
// contains filtered or unexported fields
}
func NewStandard ¶
func NewStandard() *Standard
func (*Standard) AddProperty ¶
func (v *Standard) AddProperty(key, value string, options ...PropertyOption) error
func (*Standard) MarshalJSON ¶
func (*Standard) Properties ¶
type Timezone ¶
type Timezone struct {
// contains filtered or unexported fields
}
func NewTimezone ¶
func NewTimezone() *Timezone
func (*Timezone) AddProperty ¶
func (v *Timezone) AddProperty(key, value string, options ...PropertyOption) error
func (*Timezone) MarshalJSON ¶
func (*Timezone) Properties ¶
type Todo ¶
type Todo struct {
// contains filtered or unexported fields
}
func (*Todo) AddProperty ¶
func (v *Todo) AddProperty(key, value string, options ...PropertyOption) error
func (*Todo) MarshalJSON ¶
func (*Todo) Properties ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.