zzy 72bd01d23b ```
feat(config): 移除vfs_config.yaml配置文件

移除vfs_config.yaml文件,该文件包含服务器配置、服务端点和VFS设置。
更新.gitignore文件以忽略*.yaml文件。
```
2025-09-25 16:16:25 +08:00
```
2025-09-25 16:16:25 +08:00
```
2025-09-21 15:45:37 +08:00

# 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
No description provided
Readme 157 KiB
Languages
Go 100%