-
Notifications
You must be signed in to change notification settings - Fork 495
LastInsertId #15
Comments
You can't suppress it, but you could grep it out if it bothers you. |
autocmd BufWritePost,FileWritePost *.go execute 'Lint'| vimgrep -Ev 'Id should be ID' | cwindow Seems to do the trick for me not sure I understand the rule on why Id should be all caps. Just wanted to drop this in to save time for future searchers with the same problem. |
ID is in caps for the same reason that URL and HTTP are in caps; because that's Go's style for initialisms. It's regrettable that database/sql got it wrong (it should have used LastInsertID), but we are stuck with it now. |
I know what URL and HTTP stand for I thought Id was short for Identity I didn't realize it was two words.. |
ID is short for identity (or identification), but it's formally treated as |
golint flags LastInsertId
godrv/driver.go:160:18: func LastInsertId should be LastInsertID
'though I have to implement database/sql/Result interface, which has LastInsertId.
Can I suppress this flag?
Thanks,
GThomas
The text was updated successfully, but these errors were encountered: