pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Fix TestPrintDefaults with go >= 1.18

Open pterjan opened this issue 3 years ago • 1 comments

It no longer accepts Println with a constant ending with a newline:

Fixes #368

./flag_test.go:1242:3: fmt.Println arg list ends with redundant newline FAIL github.com/spf13/pflag [build failed]

Also changing the previous line ven if it si not constant for consistency.

pterjan avatar Dec 21 '22 21:12 pterjan

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 21 '22 21:12 CLAassistant