Documentation ¶
Index ¶
- Constants
- func InitLog()
- func LogModule(module string, fields ...map[string]interface{}) *logrus.Entry
- func LogWithCtx(ctx context.Context, module string, fields ...map[string]interface{}) *logrus.Entry
- func TopKFrequent(words []string, k int) []string
- type Item
- type ItemHeap
- type LeaveType
- type Weekday
- type WeekdayDesc
Constants ¶
View Source
const ( Unknown Weekday = iota Sun Mon Tues Wed Thur Fri Sat SunDesc WeekdayDesc = "sun" MonDesc WeekdayDesc = "mon" TuesDesc WeekdayDesc = "Tues" WedDesc WeekdayDesc = "Wed" ThurDesc WeekdayDesc = "Thur" FriDesc WeekdayDesc = "Fri" SatDesc WeekdayDesc = "Sat" )
这里必须要+1,不然会导致有默认值错误
View Source
const ProblemModule = "problem"
Variables ¶
This section is empty.
Functions ¶
func LogWithCtx ¶
func TopKFrequent ¶
Types ¶
type Weekday ¶ added in v1.0.3
type Weekday int //自定义一个星期类型,作为枚举类型
func NewWeekday ¶ added in v1.0.32
type WeekdayDesc ¶ added in v1.0.32
type WeekdayDesc string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.