Golang Warning: Error string should not be capitalized or end with punctuation mark

Error string should not be capitalized or end with punctuation mark
The error string should not be capitalized or punctuated

When we use errors. New (“AAA.”) or fmt.Errorf(“Aaa.”)   When the form returns error information, the text content should not start with a capital letter or end with a punctuation mark.

Only modify according to the warning, remove the beginning of capital letter and the end of punctuation. Errors. New (“AAA”)


Read More: