Discover Packages
github.com/levinion/letc
command
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 17, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
letc
English
介绍
包含爬虫功能在内的力扣刷题辅助命令行工具
下载
go install github.com/levinion/letc@latest
开始使用
运行 letc init 获取配置文件并开始使用
命令
功能
letc cal 或 letc
统计已完成的题数,可在文件夹下新建名为 todo 的文件以忽略未做的题目
letc get {题号}
拉取给定题号的题目
letc question {问题描述}
使用ai(gpt)回答问题),需先在配置文件中配置请求url和认证token
可配置选项
虽然此处未默认启用模块化,但推荐使用
codeDir="." # 存放题目代码的主目录,默认为工作目录
moduled=false # 是否启用模块化,若为true,则将题目按简单、中等、困难三个等级分类
codeType="go" # 使用代码后缀区分语言类型
[function]
useNeed=true # 是否在拉取题目的同时拉取需求,以MarkDown文件呈现
[append]
# 该字符串将在所拉取到的题目代码前插入
prefix="""\
package main
func main(){
}
"""
[ai] # 是否启用ai
enable=false
url="https://openai.api2d.net/v1/chat/completions"
auth=""
max_tokens=100
[style]
tableMod=false # 是否已表格模式显示完成题数,启用前需确保模块化开启
[alias] # 此处提供自定义目录别名选项
easy="easy"
medium="medium"
hard="hard"
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.