Skip to content

Commit

Permalink
使用go mod管理依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
bydmm committed Jul 16, 2019
1 parent 9252f82 commit 578ed24
Show file tree
Hide file tree
Showing 545 changed files with 199 additions and 295,604 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ https://github.com/bydmm/go-crud

## 视频实况教程

[让我们写个G站吧!Golang全栈编程实况:第一集,为何而学](https://www.bilibili.com/video/av56437048)

[让我们写个G站吧!Golang全栈编程实况:第二集,伟大航路的开始](https://www.bilibili.com/video/av56462267)

[让我们写个G站吧!Golang全栈编程实况:第三集,视频补完计划](https://www.bilibili.com/video/av56582832)
[让我们写个G站吧!Golang全栈编程实况](https://space.bilibili.com/10/channel/detail?cid=78794)

## 使用Go CRUD开发的项目实例

Expand Down Expand Up @@ -63,14 +59,14 @@ SESSION_SECRE="" # Seesion密钥,必须设置而且不要泄露
GIN_MODE="debug"
```

## Go 依赖
## Go Mod

本项目使用[govendor](https://github.com/kardianos/govendor)管理依赖,以上描述的依赖已经提交到仓库之中。
下面是你想后期修改依赖的准备工作
本项目使用[Go Mod](https://github.com/golang/go/wiki/Modules)管理依赖。

```shell
go get -u github.com/kardianos/govendor
govendor init
go mod init go-crud
export GOPROXY=http://mirrors.aliyun.com/goproxy/
go run main.go // 自动安装
```

## 运行
Expand Down
15 changes: 15 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module go-crud

go 1.12

require (
github.com/gin-contrib/cors v1.3.0
github.com/gin-contrib/sessions v0.0.0-20190512062852-3cb4c4f2d615
github.com/gin-gonic/gin v1.4.0
github.com/go-redis/redis v6.15.3+incompatible
github.com/jinzhu/gorm v1.9.10
github.com/joho/godotenv v1.3.0
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
gopkg.in/go-playground/validator.v8 v8.18.2
gopkg.in/yaml.v2 v2.2.2
)
178 changes: 178 additions & 0 deletions go.sum

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions vendor/github.com/gin-contrib/cors/LICENSE

This file was deleted.

91 changes: 0 additions & 91 deletions vendor/github.com/gin-contrib/cors/README.md

This file was deleted.

89 changes: 0 additions & 89 deletions vendor/github.com/gin-contrib/cors/config.go

This file was deleted.

100 changes: 0 additions & 100 deletions vendor/github.com/gin-contrib/cors/cors.go

This file was deleted.

Loading

0 comments on commit 578ed24

Please sign in to comment.