基于golang快速搭建后台管理中心

cg33 c28a9214d7 modify readme hace 6 años
uploads 28b7348618 add upload hace 6 años
vendor dad2b66d90 add vendor hace 6 años
.gitignore dad2b66d90 add vendor hace 6 años
README.md c28a9214d7 modify readme hace 6 años
admin.db 5f10eb9cb4 initial hace 6 años
config.json 5f10eb9cb4 initial hace 6 años
go.mod 5f10eb9cb4 initial hace 6 años
main.go 5f10eb9cb4 initial hace 6 años

README.md

go-admin example

A example show how to run go-admin. Just for reference, here to know more.

一个运行go-admin的例子。仅供参考,在这里了解更多。

Following two ways to run the code.

以下两种方法。建议go版本大于1.11使用模块加载,同时设置环境变量GOPROXY=http://goproxy.cn,版本低于1.11的盆友使用第二种方法。

use go module 使用模块加载依赖

step 1

git clone https://github.com/GoAdminGroup/example.git

step 2

GO111MODULE=on go run main.go

use gopath 使用GOPATH加载依赖

step 1

cd $GOPATH && git clone https://github.com/GoAdminGroup/example.git

step 2

go get github.com/kardianos/govendor
govendor sync

如果你在中国,因为各种原因导致用以上步骤进行下载安装依赖有问题,那么你可以直接从这里下载:vendor.zip

下载完解压到项目文件夹即可。

step 3

go run main.go