Documentation ¶
Index ¶
- Variables
- func AddBaseHeaders(req *http.Request)
- func AddCommonHeader(req *http.Request)
- func AddJsonHeaders(req *http.Request)
- func CheckFileExist(filePath string)
- func CreateFileIfNotExist(filepath string) error
- func CreateFileWithParents(filePath string) error
- func DefaultRootPath() string
- func FileExist(filePath string) error
- func GenerateQueryGraphql(titleSlug string) string
- func GenerateSubmissionHistoryGraphql(titleSlug string, limit int) string
- func GenerateSubmitBody(questionId string, lang string, typedCode string) string
- func Pad(width int, content string) string
- func ResUnmarshal(resBytes []byte, ts interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildAt string
View Source
var ConfigFileName = "leetcodectl.toml"
View Source
var CustomPath = "imoh"
View Source
var DefaultLanguage = "go"
View Source
var DefaultLogPath = path.Join(RootPath, CustomPath, "leetcodectl.log")
View Source
var DefaultPathName = ".leetcodectl"
View Source
var GitCommit string
View Source
var RootPath = DefaultRootPath()
View Source
var Version string
Functions ¶
func AddBaseHeaders ¶
func AddCommonHeader ¶
func AddJsonHeaders ¶
func CheckFileExist ¶
func CheckFileExist(filePath string)
func CreateFileIfNotExist ¶
func CreateFileWithParents ¶
func DefaultRootPath ¶
func DefaultRootPath() string
func GenerateQueryGraphql ¶
func GenerateSubmitBody ¶
func ResUnmarshal ¶
func ResUnmarshal(resBytes []byte, ts interface{}) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.