Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
Key is the type of function. It use ID or TitleSlug to get question info from db.
func KeyTitleSlug ¶
type KeyFunc ¶
KeyFunc is the type of function to indicate question in Repo. The path argument is the relative path of Repo.path. The info argument is the os.FileInfo for the named path. See also https://golang.org/pkg/path/filepath/#WalkFunc
type Lang ¶
type Lang string
Lang resprents a programming language on leetcode.
const ( C Lang = "c" Cpp Lang = "cpp" CSharp Lang = "csharp" Java Lang = "java" Kotlin Lang = "kotlin" Scala Lang = "scala" Python Lang = "python" Python3 Lang = "python3" Ruby Lang = "ruby" JavaScript Lang = "javascript" Swift Lang = "swift" Go Lang = "golang" Rust Lang = "rust" )
programming languages supported on leetcode.
type Question ¶
type Question struct { ID int `db:"id"` TitleSlug string `db:"title_slug"` Title string `db:"title"` Content string `db:"content"` Difficulty string `db:"difficulty"` Tags string `db:"tags"` CodeSnippet string `db:"code_snippet"` Code string // contains filtered or unexported fields }
Question resprents a Question in leetcode repo.
Click to show internal directories.
Click to hide internal directories.