Documentation ¶
Index ¶
- func FileMd5(f *multipart.FileHeader) (string, error)
- func FillAnswerResponse(answers [][]string, req *model.SearchRequest) model.SearchResponse
- func FormatOptions(options []string, questionType int) []string
- func FormatString(src string) string
- func FullWidthStrToHalfWidthStr(str string) (result string)
- func GenerateJwt(id int32) string
- func GetQuestionText(q string) string
- func IsAlpha(s string) bool
- func IsFalse(s string) bool
- func IsTrue(s string) bool
- func ParseJwtWithClaims(jwtStr string, options ...jwt.ParserOption) (jwt.Claims, error)
- func SearchRightAnswer(answers [][]string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillAnswerResponse ¶
func FillAnswerResponse(answers [][]string, req *model.SearchRequest) model.SearchResponse
FillAnswerResponse 根据搜题结果填充答案
func FormatOptions ¶
FormatOptions 格式化选项
func FullWidthStrToHalfWidthStr ¶
FullWidthStrToHalfWidthStr 全角转半角
func ParseJwtWithClaims ¶
ParseJwtWithClaims 解析 jwt 字符串,返回 Claims 对象
func SearchRightAnswer ¶
SearchRightAnswer 此方法还有巨大的优化空间
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.