Skip to content

dasedb/go_dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_dist

go_dist

安装项目依赖

安装go

https://go.dev/doc/install

protoc: Protobuf 编译器。

下载地址: https://github.com/protocolbuffers/protobuf/releases

安装后确保 protoc 在系统的 PATH 中。

protoc-gen-go: Protobuf 的 Go 插件。

安装命令:

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

安装后确保 protoc-gen-go 在 $GOPATH/bin 或 $GOBIN 中, 确保protoc-gen-go在系统的 PATH 中。

构建项目

构建example_pkg

.proto生成.go代码文件

cd example_pkg
go generate
go build
go test

在运行 go generate 之前,确保protoc, protoc-gen-go已安装.

執行fuzz testing

go test -fuzz=FuzzMessage -parallel=1

构建main

cd main
go build

About

dist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages