tianapi

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 4 Imported by: 0

README

xxx

介绍
  1. xxxx
  2. xxxx
  3. xxxx
安装教程

go get github.com/jageros/hawox

使用例子
package main

import (
	"fmt"
	"github.com/jageros/hawox/xxx"
)

func main() {
	/*
	xxxxx
	xxxxx
	xxxxx
	*/
}
使用说明
  1. xxxx
  2. xxxx
  3. xxxx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKey added in v0.1.2

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