store

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Day

type Day struct {
	WeekDay WeekDay `json:"weekDay,omitempty" yaml:"weekDay"`
	Working bool    `json:"working" yaml:"working"`
	Type    DayType `json:"type,omitempty" yaml:"type"`
	Desc    string  `json:"desc,omitempty" yaml:"desc"`
}

type DayType

type DayType string
const (
	Normal     DayType = "normal"     // Обычный рабочий день.
	Weekend    DayType = "weekend"    // Выходной.
	PreHoliday DayType = "preHoliday" // Предпраздничный рабочий день.
	Holiday    DayType = "holiday"    // Праздничный, не рабочий.
	NonWorking DayType = "noWork"     // "Нерабочий" рабочий день :-).
)

type Days

type Days map[int]Day

func (Days) Copy

func (m Days) Copy() Days

type Months

type Months map[time.Month]Days

func (Months) Copy

func (y Months) Copy() Months

type WeekDay

type WeekDay string
const (
	Monday    WeekDay = "mon"
	Tuesday   WeekDay = "tue"
	Wednesday WeekDay = "wed"
	Thursday  WeekDay = "thu"
	Friday    WeekDay = "fri"
	Saturday  WeekDay = "sat"
	Sunday    WeekDay = "sun"
)

func NewWeekDay

func NewWeekDay(wd time.Weekday) (WeekDay, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL