Documentation ¶
Index ¶
- func ByteSliceToString(bs []byte) string
- func GetLocalDayByStartHour(hour int) (time.Time, error)
- func GetLocalDayStart() (time.Time, error)
- func GetLocalDayStr() string
- func GetLocalDayStrByStartHour(hour int) (string, error)
- func GetLocalWeekByStartHour(hour int) (time.Time, error)
- func GetLocalWeekStart() (time.Time, error)
- func GetLocalWeekStrByStartHour(hour int) (string, error)
- func GetUUIDStr() string
- func GetUnixLocalWeekStart(unixAt int64) (time.Time, error)
- func GetUnixOfLocalWeekStrByStartHour(unixAt int64, hour int) (string, error)
- func IsInSlice(arr []interface{}, iv interface{}) bool
- func IsIntInSlice(arr []int64, str int64) bool
- func IsStringInSlice(arr []string, str string) bool
- func StringToBytes(s string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceToString ¶ added in v0.0.5
ByteSliceToString is used when you really want to convert a slice // of bytes to a string without incurring overhead. It is only safe to use if you really know the byte slice is not going to change // in the lifetime of the string
func GetLocalDayByStartHour ¶ added in v0.0.25
GetLocalDayByStartHour 获取当天日期开始时间
func GetLocalDayStart ¶ added in v0.0.16
GetLocalDayStart 获取当天开始时间
func GetLocalDayStrByStartHour ¶ added in v0.0.19
GetLocalDayStrByStartHour 获取当天日期字符串
func GetLocalWeekByStartHour ¶ added in v0.0.25
GetLocalWeekByStartHour 获取当周日期开始时间
func GetLocalWeekStart ¶ added in v0.0.16
GetLocalWeekStart 获取周天开始时间
func GetLocalWeekStrByStartHour ¶ added in v0.0.23
GetLocalWeekStrByStartHour 获取当周日期字符串
func GetUnixLocalWeekStart ¶ added in v0.0.26
GetUnixLocalWeekStart 获取周天开始时间
func GetUnixOfLocalWeekStrByStartHour ¶ added in v0.0.26
GetUnixOfLocalWeekStrByStartHour 获取时间点所在的当周日期字符串
func IsStringInSlice ¶
IsStringInSlice 字符串是否在数组中
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.