# updatecolumn **Repository Path**: crazybber/updatecolumn ## Basic Information - **Project Name**: updatecolumn - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # update column update column operation in golang,更新列是一个重量级操作,需要由DGraph的事务来保证完成. 仓库工作的详细说明见:[instruction.md](Instruction.md) ## grpc ```bash go get -u github.com/golang/protobuf/{proto,protoc-gen-go} go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc go install google.golang.org/grpc/cmd/protoc-gen-go-grpc ``` ```bash protoc -Iprotos --go_out=plugins=grpc:protos updatecolumn.proto (推荐) 或者 protoc -I. --go_out=. --go-grpc_out=. protos/updatecolumn.proto 注意:会生成两份文件 ``` ## events message ```bash protoc -Iprotos/message --go_out=protos/message message.proto ``` ## Coding Style - 尽量给全部的代码加上注释,关键函数和类一定要加上注释 - 代码的文件夹结构尽量展平,不要多层嵌套 - 文件夹名称全部小写,不使用驼峰 - 尽量避免长文件和文件夹名称 - 文件名有多个单词时,使用下划线连接 - 单词拼写使用cspell检查 - Go是面向TDD开发过程,关键的UT一定要写。 ## 其他设计