Documentation
¶
Index ¶
- Constants
- func AESGCMDecrypt(key, ciphertext []byte) ([]byte, error)
- func AESGCMEncrypt(key, plaintext []byte) ([]byte, error)
- func Downloader(url, save string) error
- func IsDomain(domain string) bool
- func IsHoliday(t time.Time) int
- func IsIPv4(ipv4 string) bool
- func IsWeekend(t time.Time) bool
- func MD5(text string) string
- func RandomIP() string
- func RandomString(n int) string
- func RandomUserAgent() string
Constants ¶
View Source
const HolidayGov = 3
HolidayGov 法定节假日
View Source
const HolidayOvertimeWork = 0
HolidayOvertimeWork 法定加班
View Source
const HolidayWeekend = 2
HolidayWeekend 周末
View Source
const HolidayWorkingDay = 1
HolidayWorkingDay 工作日
Variables ¶
This section is empty.
Functions ¶
func AESGCMDecrypt ¶
AESGCMDecrypt decrypts ciphertext with the given key using AES in GCM mode.
func AESGCMEncrypt ¶
AESGCMEncrypt encrypts plaintext with the given key using AES in GCM mode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.