摘要:
文章转自 GORM CRUD指南 CRUD CRUD通常指数据库的增删改查操作,本文详细介绍了如何使用GORM实现创建、查询、更新和删除操作。 创建 创建记录 首先定义模型: type User struct { ID int64 Name string Age int64 } 使用使用NewRec 阅读全文
摘要:
安装依赖 Go Micro $ go get github.com/micro/go-micro Protobuf (如果您使用代码生成,您还需要使用protoc-gen-go) $ go get github.com/micro/protobuf/{proto,protoc-gen-go} 工具包 阅读全文