Documentation ¶
Index ¶
- func Base64De(data string) ([]byte, error)
- func Base64En(data []byte) string
- func DayCountOfYearMonth(year int, month int) (days int)
- func DayStart(t time.Time) time.Time
- func Float64Equal(a, b float64) bool
- func GetConstellation(t time.Time) (star string)
- func GetZodiac(t time.Time) (zodiac string)
- func IsDigital(s string) bool
- func IsToday(t time.Time) bool
- func MD5(data []byte) string
- func MD5Byte(data []byte) [16]byte
- func MonthStart(t time.Time) time.Time
- func NDaysAfter(t time.Time, n int) time.Time
- func NDaysAgo(t time.Time, n int) time.Time
- func NYearsAfter(t time.Time, n int) time.Time
- func NYearsAgo(t time.Time, n int) time.Time
- func PrintTable(writer io.Writer, headers []string, data [][]string)
- func RandomDigital(bitNumber int) string
- func RandomString(l int) string
- func Sha256(data string) string
- func Struct2Json(obj interface{}) string
- func Struct2Map(obj interface{}) map[string]interface{}
- func UUID() string
- func YearStart(t time.Time) time.Time
- func ZeroTime() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DayCountOfYearMonth ¶
DayCountOfYearMonth 计算某一年某一个月的天数
func GetConstellation ¶
func Struct2Json ¶
func Struct2Json(obj interface{}) string
func Struct2Map ¶
func Struct2Map(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.