![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
文章平均质量分 52
qingu
这个作者很懒,什么都没留下…
展开
-
golang环境搭建及grpc学习
一、golang环境搭建安装golang IDE,选择vs code, 安装golang,配置环境变量GOPATH,GOROOT,安装GIT 安装golang插件 3. go tools安装https://github.com/Microsoft/vscode-go/wiki/Go-tools-that-the-Go-extension-depends-ongo get...原创 2018-12-27 12:34:11 · 2146 阅读 · 1 评论 -
谷歌验证
//google_authenticator.gopackage utilsimport ( "common" "crypto/hmac" "crypto/sha1" "encoding/base32" "encoding/base64" "fmt" "github.com/skip2/go-qrcode" "math/rand" "s...原创 2019-04-30 09:50:40 · 572 阅读 · 0 评论 -
阿里oss后台直接上传文件
//oss_up_file.gopackage commonimport ( "fmt" "github.com/aliyun/oss")func UpFile(accessKeyId, accessKeySecret, endpoint, bucketName, objectName, localFileName string) (string, error) { // 创建...原创 2019-04-30 10:06:34 · 19 阅读 · 0 评论 -
阿里云短信发送
//阿里云短信发送package commonimport ( "crypto/hmac" "crypto/sha1" "encoding/base64" "encoding/json" "errors" "fmt" "github.com/aliyun/alibaba-cloud-sdk-go/sdk" "github.com/aliyun/alibaba-cloud-s...原创 2019-04-30 10:01:04 · 25 阅读 · 0 评论 -
亚马逊短信发送
//sms.go// Package sms provides a small wrapper around AWS SNS SMS support.package commonimport ( "fmt" "github.com/astaxie/beego" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws...原创 2019-04-30 10:03:28 · 50 阅读 · 0 评论 -
阿里oss前段获取签名直传
//签名验证//oss.gopackage commonimport ( "crypto" "crypto/hmac" "crypto/md5" "crypto/rsa" "crypto/sha1" "crypto/x509" "encoding/base64" "encoding/json" "encoding/pem" "errors" "fmt" "hash...原创 2020-06-11 17:24:51 · 308 阅读 · 0 评论 -
golang二维码识别
package commonimport ( "bytes" "errors" "os/exec" "strings")var ( ErrFile = errors.New("image is not QrCode"))//二维码识别func ZBarImgDecode(imageFile string) (decodeData string, err error) ...原创 2019-05-07 16:25:40 · 450 阅读 · 0 评论