go mod init 项目名

 引入包名 go get  例如:go get -u github.com/gin-contrib/sessions

go mod tidy 进行自动导入