holiday

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatDate

func ConcatDate(data map[string]Holiday)

增补修改日期

func Is

func Is(ts time.Time) (ok bool)

Is 判断是否是节假日

func RegisterDate

func RegisterDate(data map[string]Holiday)

如果来不及更新也可以自己注册日期

Types

type Holiday

type Holiday struct {
	Name string
	Is   bool
}

func Parse

func Parse(ts time.Time) (h Holiday)

Parse 解析获取节假日详细信息,返回详细的节日信息

Jump to

Keyboard shortcuts

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