Documentation ¶
Index ¶
- func FillAnswerResponse(answers [][]string, req *model.SearchRequest) model.SearchResponse
- func FormatOptions(options []string, questionType uint) []string
- func FormatString(src string) string
- func FullWidthStrToHalfWidthStr(str string) (result string)
- func IsAlpha(s string) bool
- func IsFalse(s string) bool
- func IsTrue(s string) bool
- 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 SearchRightAnswer ¶
SearchRightAnswer 此方法还有巨大的优化空间
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.