Documentation ¶
Index ¶
- Constants
- Variables
- func BatchItoa(data []int) []string
- func CharLength(str string) (count int)
- func CopyIntSlice(slice []int) []int
- func CopyStringSlice(slice []string) []string
- func DayEndTime(t time.Time) time.Time
- func DayStartTime(t time.Time) time.Time
- func EqualDay(a, b time.Time) bool
- func FilterDuplicateAndCustomFuncIntSlice(slice []int, filter func(i int) bool) []int
- func FilterDuplicateAndCustomFuncStringSlice(slice []string, filter func(i string) bool) []string
- func FilterDuplicateAndEmptyStringSlice(slice []string) []string
- func FilterDuplicateAndZeroIntSlice(slice []int) []int
- func FilterDuplicateIntSlice(slice []int) []int
- func FilterDuplicateStringSlice(slice []string) []string
- func FormatDate(t time.Time) string
- func FormatDateTime(t time.Time) string
- func FormatTime(t time.Time) string
- func GetFirstLetter(str string) string
- func GetIds(ig IdGetter) []int
- func Int64Slice2IntSlice(slice []int64) []int
- func IntSlice2Int64Slice(slice []int) []int64
- func IntSlice2StringSlice(slice []int) []string
- func JoinIds(ig IdGetter, sep string) string
- func MonthFirstDayEndTime(t time.Time) time.Time
- func MonthFirstDayStartTime(t time.Time) time.Time
- func MonthLastDayEndTime(t time.Time) time.Time
- func MonthLastDayStartTime(t time.Time) time.Time
- func MustAtoi(str string) int
- func MustBatchAtoi(data []string) []int
- func MustMarshal(v interface{}) []byte
- func MustMarshalToString(v interface{}) string
- func MustParse(format string, str string) time.Time
- func MustParseDate(str string) time.Time
- func MustParseDateTime(str string) time.Time
- func MustParseTime(str string) time.Time
- func MustPbTime2Time(timestamp *timestamp.Timestamp) time.Time
- func MustTime2PbTime(time time.Time) *timestamp.Timestamp
- func TodayEndTime() time.Time
- func TodayStartTime() time.Time
- type Color
- type IdGetter
Constants ¶
View Source
const ( DateFormat = "2006-01-02" TimeFormat = "15:04:05" DateTimeFormat = "2006-01-02 15:04:05" )
Variables ¶
View Source
var ZeroTime = time.Unix(0, 0)
Functions ¶
func CopyIntSlice ¶
func CopyStringSlice ¶
func FilterDuplicateIntSlice ¶
func FormatDate ¶
func FormatDateTime ¶
func FormatTime ¶
func Int64Slice2IntSlice ¶
func IntSlice2Int64Slice ¶
func IntSlice2StringSlice ¶
func MustBatchAtoi ¶
func MustMarshal ¶
func MustMarshal(v interface{}) []byte
func MustMarshalToString ¶
func MustMarshalToString(v interface{}) string
func MustParseDate ¶
func MustParseDateTime ¶
func MustParseTime ¶
func TodayEndTime ¶
func TodayStartTime ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.