3
我有一個main.go
和mypkg/...go
。我使用go build -o main main.go
或go install <pkg that has main.go>
,並有我需要的一些標誌。但我也看到了測試標誌。這是爲什麼發生?我錯過了什麼?使用去建立,但我也看到 - 測試標誌
Usage of ./main:
-docker string
Docker API Path, defaults to local (default "unix:///var/run/docker.sock")
-httptest.serve string
if non-empty, httptest.NewServer serves on this address and blocks
-port int
The default port to listen (default 8000)
-test.bench string
regular expression per path component to select benchmarks to run
-test.benchmem
print memory allocations for benchmarks
-test.benchtime duration
approximate run time for each benchmark (default 1s)
-test.blockprofile string
write a goroutine blocking profile to the named file after execution
-test.blockprofilerate int
if >= 0, calls runtime.SetBlockProfileRate() (default 1)
dockerPath和端口是我的標誌,但正如你所看到的其他人不是我的標誌。
非常感謝,謝謝! – Mustafa