A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stretchr/testify/issues/339 below:

go1.7 vet flags "possible formatting directive" when Error is used · Issue #339 · stretchr/testify · GitHub

When the assert.Error method is used with formatting arguments, go vet complains as of 1.7:

flag_test.go:61: possible formatting directive in Error call

For more information and a repro, see:
uber-go/zap#135

The specific check that is run is here:
https://golang.org/src/cmd/vet/print.go#L587

I'm not sure if there's a good fix for this, but I wanted to flag this, as I typically:

However, this "correct" usage of the library leading to a vet failure may mean users will either avoid one or the other.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4