Kevin Qi

Results 4 comments of Kevin Qi

同样类似问题 Table绑定struct 查询单行时也会这样 type VipInfo struct { VipName string `gorose:"VIPNAME"` VipMobile string `gorose:"MOBILE"` VipCardNo string `gorose:"VIPCARDNO"` } var i = new(VipInfo) err = Orm.Table(i).Where("MOBILE", mobile).Select() //实际执行sql = select * from...

@NONFish 无解,直接手动设定的环境变量...(笑哭)

@NONFish 在你的本地配置文件中加入以下代码 ```shell export GOPATH=你的工作路径 #最好用绝对地址,如:/Users/mac/go ``` 本地配置文件看你的shell bash下就是`~/.bash_profile`,zsh下就是`~/.zshrc` 然后source一下该文件就可以了