# cool-admin-go **Repository Path**: cool-team-official/cool-admin-go ## Basic Information - **Project Name**: cool-admin-go - **Description**: cool-admin go版本 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://cool-js.com - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 3 - **Created**: 2024-01-22 - **Last Updated**: 2025-09-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CoolAdminGo [![Go Reference](https://pkg.go.dev/badge/github.com/cool-team-official/cool-admin-go.svg)](https://pkg.go.dev/github.com/cool-team-official/cool-admin-go) [![Build Release](https://github.com/cool-team-official/cool-admin-go/actions/workflows/release.yml/badge.svg)](https://github.com/cool-team-official/cool-admin-go/actions/workflows/release.yml) [![Goproxy.cn](https://goproxy.cn/stats/github.com/cool-team-official/cool-admin-go/badges/download-count.svg)](https://goproxy.cn) CoolAdmin 的 Go 版本后端 - [docs](https://cool-team-official.github.io/cool-admin-go/) - 开发文档 - [changelog](docs/changelog.md) - 更新日志 - [github](https://github.com/cool-team-official/cool-admin-go) - cool-admin-go 仓库 - [release](https://github.com/cool-team-official/cool-admin-go/releases) - cool-tools 编译版本下载 - [issues](https://github.com/cool-team-official/cool-admin-go/issues) - 问答区 - [CoolAdmin](https://cool-js.com) - CoolAdmin 官网 - [GoFrame](https://goframe.org) - GoFrame 官网 ## TODO - [x] 基础 CURD 结构搭建 - [x] model 层快速生成 - [x] service 层快速生成 - [x] controller 层快速生成 - [x] 中间件错误状态及错误码与 node 版本统一 - [x] 全局错误码统一 - [x] controller 层接口输入与 node 版本统一 - [x] 优化开发工具安装体验 - [x] service 层逻辑补全 - [x] base 模块逻辑补全 感谢 @imhuso - [ ] 开发文档编制 - [ ] 数据库驱动补充 - [ ] 文件上传驱动补充 - [ ] 其他项目需求 ## 使用说明 首先下载安装 Go 语言环境,如果没有安装,请自行安装,如果已经安装,请自行配置环境变量 ### 1.安装`cool-tools`开发工具 从 github 下载 ```bash wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install && rm ./cool-tools ``` 如果到直接下载速度过慢,可使用`pgit`加速安装 ```bash pgit wget -O cool-tools https://github.com/cool-team-official/cool-admin-go/releases/latest/download/cool-tools_$(go env GOOS)_$(go env GOARCH) && chmod +x cool-tools && ./cool-tools install && rm ./cool-tools ``` 通过`go install`安装 ```bash go install github.com/cool-team-official/cool-admin-go/cool-tools@latest ``` 验证 ```bash cool-tools version ``` ### 2.创建新项目 ```bash cool-tools init hello-world ``` ### 3.安装依赖 ```bash cd hellow-world go mod tidy ``` ### 5.启动开发环境 ```bash cool-tools run main.go ``` enjoy it!