Documentation ¶
Overview ¶
Package leetcode implements access to leetcode.com.
Index ¶
- Variables
- func AccountsLogin(username, password string) (*http.Response, error)
- func AutoLogin() (*http.Response, error)
- func Clean()
- func GetDescription(articleSlug string) string
- func IsSolved(id int) bool
- type ProblemsType
- type QuestionDataType
- type QuestionTranslationType
- type StatStatusPairsType
- type TagType
- type TopicTagType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LockStr = " 🔒"
)
leetcode var
Functions ¶
func AccountsLogin ¶
AccountsLogin - leetcode.AccountsLogin
func GetDescription ¶
GetDescription - leetcode.GetDescription
Types ¶
type ProblemsType ¶ added in v1.4.9
type ProblemsType struct { UserName string `json:"user_name"` NumSolved int `json:"num_solved"` NumTotal int `json:"num_total"` AcEasy int `json:"ac_easy"` AcMedium int `json:"ac_medium"` AcHard int `json:"ac_hard"` StatStatusPairs []StatStatusPairsType `json:"stat_status_pairs"` FrequencyHigh int `json:"frequency_high"` FrequencyMid int `json:"frequency_mid"` CategorySlug string `json:"category_slug"` }
ProblemsType - leetcode.ProblemsType
func ProblemsAlgorithms ¶
func ProblemsAlgorithms() (ps ProblemsType)
ProblemsAlgorithms - leetcode.ProblemsAlgorithms
func ProblemsDatabase ¶
func ProblemsDatabase() (ps ProblemsType)
ProblemsDatabase - leetcode.ProblemsDatabase
type QuestionDataType ¶ added in v1.4.9
type QuestionDataType struct { Errors []errorType `json:"errors"` Data dataType `json:"data"` }
QuestionDataType - leetcode.QuestionDataType
func QuestionData ¶
func QuestionData(titleSlug string, isForce bool, graphQL ...string) (qd QuestionDataType)
QuestionData - leetcode.QuestionData
type QuestionTranslationType ¶ added in v1.4.9
type QuestionTranslationType struct { Errors []errorType `json:"errors"` Data qtDataType `json:"data"` }
QuestionTranslationType - leetcode.QuestionTranslationType
func GetQuestionTranslation ¶
func GetQuestionTranslation() (qt QuestionTranslationType)
GetQuestionTranslation - leetcode.GetQuestionTranslation
type StatStatusPairsType ¶ added in v1.4.0
type StatStatusPairsType struct { Stat statType `json:"stat"` Status string `json:"status"` Difficulty difficultyType `json:"difficulty"` PaidOnly paidType `json:"paid_only"` IsFavor bool `json:"is_favor"` Frequency int `json:"frequency"` Progress int `json:"progress"` }
StatStatusPairsType - leetcode.StatStatusPairsType
type TagType ¶ added in v1.4.0
TagType - leetcode.TagType
func (*TagType) SaveContents ¶ added in v1.4.0
func (tag *TagType) SaveContents()
SaveContents - leetcode.SaveContents
type TopicTagType ¶ added in v1.4.9
type TopicTagType struct { Errors []errorType `json:"errors"` Data ttDataType `json:"data"` }
TopicTagType - leetcode.TopicTagType
func GetTopicTag ¶
func GetTopicTag(slug string) (tt TopicTagType)
GetTopicTag - leetcode.GetTopicTag
Click to show internal directories.
Click to hide internal directories.