【文件属性】:
文件名称:task_manager
文件大小:13KB
文件格式:ZIP
更新时间:2021-03-21 19:28:25
Go
任务管理器
发展
使用以下命令运行服务:
go run main.go
您可以运行测试:
go test -v ./...
或者
make test
项目结构
.circleci包含与CI流程相关的文件,
docs包含用于资源嵌入的所有文档包,
migrations包含所有SQL迁移,
pkg :
models包含所有数据模型声明和一个基本的CRUD层,
rest包含REST API的实现,
用于软件包依赖关系管理的go.mod和go.sum ,
task_template.csv是导入任务的示例csv模板
API文件
邮递员文档,带有请求和示例响应:
创建任务:
curl --location --request POST 'localhost:3000/tasks' \
--header 'Content-Type: application/json' \
--da
【文件预览】:
task_manager-main
----pkg()
--------models()
--------rest()
----task_template.csv(64B)
----main.go(1KB)
----.gitignore(125B)
----.circleci()
--------config.yml(262B)
----Makefile(23B)
----go.sum(13KB)
----README.md(2KB)
----go.mod(401B)