package
0.0.0-20241211055551-d78a9e0927a3
Repository: https://github.com/halfrost/leetcode-go.git
Documentation: pkg.go.dev
# README
LeetCode-Go ctl
配置方法
- 在
.gitignore
中,添加一行*.toml
- 在
LeetCode-Go
目录下,添加文本文件config.toml
。 - 把以下内容复制到
config.toml
中。 - 把
config.toml
中的test
分别修改为你的 leetcode用户名
和密码
。 - 去 leetcode 登录后,把网站 cookie 复制 (需要复制 csrftoken 和 LEETCODE_SESSION) 并替换
config.toml
中的Cookie
。
Username="test"
Password="test"
Cookie="csrftoken=XXXXXXXXX; LEETCODE_SESSION=YYYYYYYY;"
CSRFtoken="ZZZZZZZZ"
PDF 生成
用 leetcode-go pdf
命令先生成书籍内容的合并版本 pdf.md,再用 vscode 或者其他支持 toc 目录生成的工具,生成 toc。最后用 Typora 把 md 文件转换成 pdf。就可以发布 release 新版本了。
# Functions
ExitWithError define.
# Constants
AlgorithmsURL define.
AllProblemURL define.
ArrayProblemURL define.
ExitBadArgs define.
ExitError define.
ExitSuccess define.
LoginPageURL define.
QraphqlURL define.
# Variables
ErrInvalidLineCount is thrown when the user provided 0 (zero) as the value for number of lines to tail.
ErrNoFilename is thrown when the path the the file to tail was not given.