Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gosimple: simplify fmt.Sprintf("%d", n) #198
Not always applicable, the original form may be used for consistency, e.g.:
s += fmt.Sprintf("...%d", n) s += fmt.Sprintf("..%d", n) s += fmt.Sprintf(".%d", n) s += fmt.Sprintf("%d", n)
But of course it's a valid in-editor suggestion.
Also, it has addition alternative simplifications possible, e.g.,