go generate go generate Briefly describe how go generate works. Answer go generate will search specified directories or files for comments like "//go:generate" , a...
go test go test go test 命令用于对Go语言编写的程序进行测试。这种测试是以代码包为单位的。当然,这还需要测试源码文件的帮助。关于怎样编写并写好Go程序测试代码,我们会在本章的第二节加以详述。在这里,我们只讨论怎样使用命令启动测试。 go test 命令会自动测试每一个指定的代码包。当然,前提是指定的代码包中存在测试源码文件。...
go clean go clean 执行go clean 命令会删除掉执行其它命令时产生的一些文件和目录,包括: 在使用go build 命令时在当前代码包下生成的与包名同名或者与Go源码文件同名的可执行文件。在Windows下,则是与包名同名或者Go源码文件同名且带有“.exe”后缀的文件。 在执行go test 命令并加入-c 标记时在当...
Pulsar Go client Get started What’s next? Reference doc Pulsar Go client You can use a Pulsar Go client to create Pulsar producers, consumers, and readers in Golang. Get s...
Pulsar Go client Get started What’s next? Reference doc Pulsar Go client You can use a Pulsar Go client to create Pulsar producers, consumers, and readers in Golang. Get s...
Go SDK Go SDK The GreptimeDB Go ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the Go library documentation . To c...
Contributing to the Go SDK Examples Docs Contributing to the Go SDK Guidelines for contributing to the Dapr Go SDK When contributing to the Go SDK the following rules and be...
Go SDK Go SDK The GreptimeDB Go ingester library utilizes gRPC for writing data to the database. For how to use the library, please refer to the Go library documentation . To c...