欢迎使用皮肤 Geek|

雪糕战士

园龄:4年8个月粉丝:0关注:1

随笔分类 -  go

fyne
摘要:打包命令: fyne package -os darwin -icon myapp.png fyne package -os linux -icon myapp.png fyne package -os windows -icon myapp.png
145
0
0
内嵌结构体赋值
摘要:type Page []struct { MenuID int `json:"menu_id"` Title string `json:"title"` Path string `json:"path"` Key string `json:"key"` ParentKey string `json:
47
0
0
grpcui,grpc接口测试工具
摘要:安装: go install github.com/fullstorydev/grpcui/cmd/grpcui@latest 启动: grpcui -plaintext 端口号 例子:grpcui -plaintext 127.0.0.1:9000 添加请求信息key value 格式,服务通过元
410
0
0
go 使用errgroup 捕获goroutine 运行中产生的错误
摘要:func CreateGreeter() error { var mu sync.Mutexgroup := new(errgroup.Group) var info []biz.Info m := make(map[string]string) userlist := []string{"User
106
0
0
gorm连接mssql方法
摘要:c.Database.Source格式:server=127.0.0.1;user id=SA;password=Pwd123456;port=1433;database=master;encrypt=disable DB, err := gorm.Open(sqlserver.Open(c.Dat
355
0
0
sql 查询一对多数据,并赋值给结构体
摘要:最简单的办法:使用copier库 copier.Copy(&A, &B) // 将B切片赋值给A切片 参考这个博客:https://darjun.github.io/2020/03/13/godailylib/copier/ 使用for循环方法: 我使用sqlx查询数据库数据,查询结果如下: 我想通
413
0
0
"open ./permission/rbac_models.conf: The system cannot find the path specified."
摘要:引入相对文件报错 "open ./permission/rbac_models.conf: The system cannot find the path specified." casbin.NewEnforcer("./permission/rbac_models.conf", a)修改为 My
252
0
0
panic: interface conversion: *gormadapter.Adapter is not persist.Adapter: missing method LoadPolicy
摘要:panic: interface conversion: *gormadapter.Adapter is not persist.Adapter: missing method LoadPolicy casbin引入切换为 "github.com/casbin/casbin/v2"
486
0
0
go-micro 安装(Windows 10)
摘要:转载自:https://segmentfault.com/a/1190000039754673 # 设置 mod 模式和代理go env -w GO111MODULE=ongo env -w GOPROXY=https://goproxy.cn,https://proxy.golang.org,di
400
0
0
protoc-gen-go: unable to determine Go import path for "person.proto"
摘要:protoc-gen-go: unable to determine Go import path for "person.proto" Please specify either: • a "go_package" option in the .proto source file, or • a
1576
0
0
gin框架安装,及安装失败处理
摘要:git地址:https://github.com/skyhee/gin-doc-cn 执行后提示: Cloning into 'D:\GO\src\github.com\gin-gonic\gin'...error: RPC failed; curl 56 OpenSSL SSL_read: Con
746
0
0
vscood Goland提示Delve的版本太旧,无法debug的处理方式
摘要:参考:https://blog.csdn.net/qq_33656559/article/details/107223811 vscode安装go语言的调试插件,按官方给出的方法很简单,在cmd下执行这个命令(最好使用git执行命令行): go get -u github.com/derekpark
391
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起