Documentation ¶
Index ¶
- func FormatQuestionContent(s string) string
- func GetCfgFilepath() string
- func GetCfgPath() string
- func GetQuestionFilepath() string
- func GetQuestionLink(slug string) string
- func GetQuestionPath(fid string, qid int64, slug string) string
- func GetTagLink(tag string) string
- type App
- type Config
- type Generator
- func (t *Generator) GenerateQuestion(detail *config.Question, projectDir string, lang string) error
- func (t *Generator) GenerateRecord(list []*config.Question, projectDir string) error
- func (t *Generator) GenerateTag(tagList []*config.Tag, tagMap map[string][]*config.Question, projectDir string) error
- type LeetCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQuestionPath ¶
GetQuestionPath ...
Types ¶
type Config ¶
type Config struct { Path string `json:"path" yaml:"path" table:"答题目录"` Lang string `json:"lang" yaml:"lang" table:"答题语言"` QuestionFile string `json:"question_file" yaml:"questionFile"` }
Config ...
type Generator ¶
type Generator struct{}
Generator ...
func (*Generator) GenerateQuestion ¶
func (t *Generator) GenerateQuestion( detail *config.Question, projectDir string, lang string, ) error
GenerateQuestion ...
func (*Generator) GenerateRecord ¶
GenerateRecord ...
type LeetCode ¶
LeetCode ...
func (*LeetCode) GetQuestionDetail ¶
func (t *LeetCode) GetQuestionDetail(slug string) (*config.QuestionDetail, error)
GetQuestionDetail ...
func (*LeetCode) GetQuestionList ¶
GetQuestionList ...
Click to show internal directories.
Click to hide internal directories.