tianapi

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKey

func SetKey(key string)

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)

Jump to

Keyboard shortcuts

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