go学习中用到的包整理

第三方工具包

1.自动重载air:

go get -u github.com/cosmtrek/air

2.路由包gorilla/mux:

go get -u github.com/gorilla/mux

3.测试包stretchr/testify:

go get github.com/stretchr/testify

4.mysql驱动go-sql-driver/mysql:

go get github.com/go-sql-driver/mysql

5.ORM包:gorm.io/gorm

go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql

6.配置库spf13/viper:

go get github.com/spf13/viper

7.会话管理gorilla/sessions:

go get -u github.com/gorilla/sessions

8.加解密crypto/bcrypt:

go get golang.org/x/crypto/bcrypt

Last modification:January 12th, 2021 at 11:10 am