省略了太多东西了,比如缺少github.com/go-sql-driver/mysql包。数据库的密码填在哪里,都不讲。如果完全按视频来操作,是肯定走不通的。
2019-05-25
model 层看这两个文件就够了:
https://github.com/go-learn-go/guess/blob/master/test.sql
https://github.com/go-learn-go/guess/blob/master/models/subject.go
https://github.com/go-learn-go/guess/blob/master/test.sql
https://github.com/go-learn-go/guess/blob/master/models/subject.go
2019-05-21
PS C:\go\src> bee new blog
______
| ___ \
| |_/ / ___ ___
| ___ \ / _ \ / _ \
| |_/ /| __/| __/
\____/ \___| \___| v1.10.0
______
| ___ \
| |_/ / ___ ___
| ___ \ / _ \ / _ \
| |_/ /| __/| __/
\____/ \___| \___| v1.10.0
2018-12-25
PS C:\docker\go\beego> go get -u github.com/astaxie/beego
PS C:\docker\go\beego> go get -u github.com/beego/bee
PS C:\docker\go\beego> bee version
PS C:\docker\go\beego> go get -u github.com/beego/bee
PS C:\docker\go\beego> bee version
2018-12-25