Documentation ¶
Index ¶
- Constants
- func DateZero(t time.Time) time.Time
- func DifferDays(t1, t2 time.Time) int
- func GOMAXPROCS(n ...int)
- func GetFieldTags(t reflect.Type, tag ...string) map[int]string
- func GetHeadersByTags(value any, tag ...string) []string
- func GetMonthDay() (string, string)
- func GetQuarterDay(months ...int) (string, string)
- func GetStructHeaders(t reflect.Type, tag ...string) []string
- func GetValuesByTags(value any, tag ...string) []string
- func GetWeekDay() (string, string)
- func LimtUp(securityCode string, price float64) float64
- func ParseTime(timestr string) (time.Time, error)
- func UnixTime(timestamp int64) time.Time
- type MultiOnce
Constants ¶
View Source
const (
StructDefaultTagNameOfTableHeader = "name"
)
View Source
const (
YearOnly = "2006"
)
Variables ¶
This section is empty.
Functions ¶
func DifferDays ¶ added in v1.3.22
DifferDays 计算天数差 从 t1 回到 t2 需要多少天
func GetFieldTags ¶ added in v1.6.17
GetFieldTags 缓存字段Tag
func GetHeadersByTags ¶ added in v1.7.3
GetHeadersByTags 获取字段表头
func GetQuarterDay ¶ added in v1.3.22
GetQuarterDay 获得当前季度的初始和结束日期
func GetStructHeaders ¶ added in v1.6.17
GetStructHeaders 获取structs表头
func GetValuesByTags ¶ added in v1.7.3
GetValuesByTags Values 输出表格的行和列
Types ¶
Click to show internal directories.
Click to hide internal directories.