a3033bbf679063b71956ca35bda77b8f478d1796
- 新增递归删除目录及子项的功能,支持 recursive 和 force 操作模式 - 支持通过路径获取文件或目录内容,并完善参数说明和示例 - 完善 VFS API 文档,包括操作模式、权限描述和响应内容 - 优化 GetVFSNode 方法,改为通过 ID 查询节点信息 - 修复部分路径和权限检查的逻辑注释
# https://gin-gonic.com/zh-cn/docs/quickstart/
go get -u github.com/gin-gonic/gin
# https://github.com/swaggo/gin-swagger
go install github.com/swaggo/swag/cmd/swag@latest
swag init
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files
# [link](https://github.com/oapi-codegen/oapi-codegen/?tab=readme-ov-file)
# this will then modify your `go.mod`
go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
#go:generate go tool oapi-codegen -config cfg.yaml ../../api.yaml
go tool oapi-codegen -config cfg.yaml api.yaml
# https://go-lang.org.cn/doc/tutorial/govulncheck
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
go install github.com/magefile/mage@latest
mage -init
mage build
//go:build mage
package main
import (
"github.com/magefile/mage/sh"
)
// Runs go mod download and then installs the binary.
func Build() error {
if err := sh.Run("go", "mod", "download"); err != nil {
return err
}
return sh.Run("go", "install", "./...")
}
// on vscode settings.json
{
"gopls": {
"buildFlags": ["-tags=mage"]
}
}
Description
Languages
Go
100%