go vet should ideally report likely misuses of standard library functions especially when it comes to providing constant(-ish) string arguments, e.g. (note: the following list is absolutely not exhaustive)
strings.(Trim|TrimLeft|TrimRight) with a cutset containing duplicated runes
net/http.NewRequest with an invalid HTTP method or a non-HTTP url
net/http.(Do|Get|Post) with a non-HTTP url
regexp.(Must)?Compile with an invalid regexp
(text|html)/template.Template.Parse with an invalid template text
- (and so on, for all functions/structs where it makes sense; not all of them need to be added right away, coverage will likely improve over time)
go vetshould ideally report likely misuses of standard library functions especially when it comes to providing constant(-ish) string arguments, e.g. (note: the following list is absolutely not exhaustive)strings.(Trim|TrimLeft|TrimRight)with acutsetcontaining duplicated runesnet/http.NewRequestwith an invalid HTTPmethodor a non-HTTPurlnet/http.(Do|Get|Post)with a non-HTTPurlregexp.(Must)?Compilewith an invalidregexp(text|html)/template.Template.Parsewith an invalid templatetext