Go语言中文网 为您找到相关结果 2

不花一分钱做微信公众号测试开发

提供给微信公众号入门的小伙伴 1.首先下载ngrok,并开启![[WQ(%_(1M24PQ[QJGQ}}WES.png](https://static.studygolang.com/180326/6e1cf2d40b029dae17f133fc53b30e89.png) 2.注册微信测试号 http://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index (https://static.studygolang.com/180326/291a13721ecb31fa92fb5410b607be5a.png) 注意:如果有非测试公众号,是需要填写ip白名单,填写的是代理的ip...阅读全文

Golang 红包算法入门版

import ( "fmt" "math/rand" "sync" "time" ) type RedPack struct { Id string Num int // 红包个数 NumDelivered int // 已拆包数量 Amount int // 红包金额 AmountDelivered int // 已发放金额 } func NewRedPack(num int, amount int) *RedPack { return &RedPack{Num: num, Amount: amount, NumDelivered: 0, AmountDelivered: 0} } func (pack *RedPack) get() int { if pack.NumDelivered ...阅读全文

博文 2020-05-07 15:38:26 AngryApe