diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-07-09 16:02:32 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-07-09 16:02:32 -0230 |
| commit | 0e37fb37065ae4f7ca0a2f8648bca777eaf55930 (patch) | |
| tree | ed43c1bab2cd98f98bfa7d069493d5bb8ca0ed3a | |
| parent | 477165c4233d84b3557c4fc3aed021ce0fae4a58 (diff) | |
| download | exchange-0e37fb37065ae4f7ca0a2f8648bca777eaf55930.zip | |
test: suppress debug info by defaultv0.1.0
| -rw-r--r-- | exchange_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exchange_test.go b/exchange_test.go index dcb68b1..89e7393 100644 --- a/exchange_test.go +++ b/exchange_test.go @@ -3,6 +3,7 @@ package exchange import ( "bytes" "encoding/json" + "flag" "log" "net/url" "os" @@ -29,7 +30,8 @@ const ( var apiKey string func TestMain(m *testing.M) { - debug = true + flag.BoolVar(&debug, "debug", false, "log debug info to stderr") + flag.Parse() // Load API key buf, err := os.ReadFile(keyFile) |