Documentation ¶ Index ¶ type Date func (d *Date) Info() string func (d *Date) String() string func (d *Date) Type() DateType type DateType func (dt DateType) Info() string func (dt DateType) String() string func (dt DateType) Type() DateType type IDateType func CheckDateType(date string) (IDateType, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Date ¶ type Date struct { // contains filtered or unexported fields } func (*Date) Info ¶ func (d *Date) Info() string func (*Date) String ¶ func (d *Date) String() string func (*Date) Type ¶ func (d *Date) Type() DateType type DateType ¶ type DateType uint8 const ( UnknownType DateType = 0 // 未知类型 WorkingDay DateType = 1 // 工作日 Holiday DateType = 2 // 节假日 Weekends DateType = 3 // 双休日 TakeWorking DateType = 4 // 调休日 ) func (DateType) Info ¶ func (dt DateType) Info() string func (DateType) String ¶ func (dt DateType) String() string func (DateType) Type ¶ func (dt DateType) Type() DateType type IDateType ¶ type IDateType interface { Type() DateType String() string Info() string } func CheckDateType ¶ func CheckDateType(date string) (IDateType, error) Source Files ¶ View all Source files datetype.go Click to show internal directories. Click to hide internal directories.