Documentation ¶
Index ¶
- Constants
- func DeserializeFromStringArray(i interface{}, stringArray []string) (err error)
- func DeserializeStructFromExcelRow(e interface{}, row *xlsx.Row) (err error)
- func FormatFieldName(raw string) (name string)
- func GetDurationToNextHalfHour() time.Duration
- func GetDurationToNextMinute() time.Duration
- func GetNextHalfHour() time.Time
- func GetNextMinute() time.Time
- func GetProgramFileBaseName() string
- func GetTheDayBeginTime(src time.Time, days int) (desc time.Time)
- func GetTheWeekBeginTime(src time.Time) (desc time.Time)
- func GetThisMinute() time.Time
- func GetTypeName(i interface{}) string
- func IsDirOrFileExist(path string) error
- func IsSameDayUnixTimeStamp(t1 int64, t2 int64) bool
- func LowerFirst(str string) string
- func MD5Sum(input []byte) (output []byte)
- func MD5Sumf(format string, args ...interface{}) (output []byte)
- func MakeSignalChannel(sig ...os.Signal) chan os.Signal
- func MustMkdirIfNotExist(path string)
- func ParseTimeString(strTime string) (time.Time, error)
- func ParseTimeStringByFormat(fmt string, strTime string) (time.Time, error)
- func ParseTimeStringInLocation(strTime string) (time.Time, error)
- func ParseTimeStringInLocationByFormat(fmt string, strTime string) (time.Time, error)
- func ReadLineFromConsole() (string, error)
- func UpperFirst(str string) string
- func WaitExitSignal() os.Signal
- func Walk(dir string, extend string, whiteList []string, blackList []string, ...) (err error)
Constants ¶
View Source
const DefaultTimeFormat = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func GetNextHalfHour ¶
获取整点和半小时 例如: 当前是19:20, 则获取到的是19:30, 如果是19:40, 获取到的是20:00
func GetTheDayBeginTime ¶
获取距离某时刻n天的开始时刻
func IsSameDayUnixTimeStamp ¶
判断2个unix时间戳是不是同一天
func LowerFirst ¶
func ParseTimeStringByFormat ¶
解析时间字符串, 返回UTC时间
func ParseTimeStringInLocationByFormat ¶
解析时间字符串, 返回本地时间
func ReadLineFromConsole ¶
func UpperFirst ¶
func WaitExitSignal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.