Versions in this module Expand all Collapse all v2 v2.0.0 Jul 30, 2023 Changes in this version + var ErrInvalidEventType = errors.New("invalid event type") + var ErrMissingNameOrNames = errors.New("'name' or 'names' must be provided") + var ErrNameOrNames = errors.New("'name' is mutually exclusive with 'names'") + var ErrNamesArePair = errors.New("'names' must have two elements") + var EventTypes = []EventType + type Event struct + Day int + Month time.Month + Name string + Names *[2]string + Surname string + Type EventType + func (e Event) Format(list bool) string + func (e Event) Validate() error + type EventType string + const Birthday + const Nameday + const Wedding + func (et EventType) Format(accusative bool) string + func (et EventType) String() string + func (et EventType) Validate() error + type Events []Event + func (ev Events) String() string