摘要:
由于在项目中有时候需要验证码来进行前端验证 所以就在github上找两个一个开源的golang验证码项目 项目地址:https://github.com/dchest/captcha 加载到项目中 : go get github.com/dchest/captcha 验证码使用:package to 阅读全文
摘要:
1 安装beego go get github.com/beego/beego 2 安装快速搭建beego项目的工具 go get github.com/beego/beea 安装完之后,bee 可执行文件默认存放在 $GOPATH/bin 里面,所以您需要把 $GOPATH/bin 添加到您的环境 阅读全文
摘要:
Go 语言中的接口就是一组方法的签名,它是 Go 语言的重要组成部分。 //定义一个会员接口 type PlanMember interface { Join() JoinResponse Activate() ActivateResponse } //定义接口方法的返回值 type JoinRes 阅读全文