Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Leetcode ¶
type Leetcode struct { Username string // 用户名 Ranking int // 网站排名 Updated time.Time // 数据更新时间 Record record // 已解答题目与全部题目的数量,按照难度统计 Problems problems // 所有问题的集合 }
Leetcode leetcode
func (*Leetcode) AvailableTable ¶
func (*Leetcode) CompletedTable ¶
func (*Leetcode) FavoriteCount ¶
func (*Leetcode) FavoriteTable ¶
func (*Leetcode) ProgressTable ¶
func (*Leetcode) UnavailableList ¶
type Problem ¶
type Problem struct { ID int Title string TitleSlug string PassRate string Difficulty string IsAccepted, IsPaid, IsFavor, IsNew bool HasNoGoOption bool // 不能够使用 Go 语言解答 }
func (Problem) IsAvailable ¶
func (Problem) PackageName ¶
type Question ¶
type Question struct { Content string Stats questionStat CodeDefinition []codeDefinition SampleTestCase string MetaData string TranslatedContent string EnableRunCode bool }
func FetchQuestion ¶
FetchQuestion 参考:https://github.com/WindomZ/leetcode-graphql/blob/master/base_question.go
Click to show internal directories.
Click to hide internal directories.