Skip to content

Instantly share code, notes, and snippets.

@nasermirzaei89
Created February 21, 2016 06:59
Show Gist options
  • Save nasermirzaei89/affa5a2026eaca9f3007 to your computer and use it in GitHub Desktop.
Save nasermirzaei89/affa5a2026eaca9f3007 to your computer and use it in GitHub Desktop.
// commonInitialisms is a set of common initialisms.
// Only add entries that are highly unlikely to be non-initialisms.
// For instance, "ID" is fine (Freudian code is rare), but "AND" is not.
// https://github.com/golang/lint/blob/3d26dc39376c307203d3a221bada26816b3073cf/lint.go#L482
var commonInitialisms = map[string]bool{
"API": true,
"ASCII": true,
"CPU": true,
"CSS": true,
"DNS": true,
"EOF": true,
"HTML": true,
"HTTP": true,
"HTTPS": true,
"ID": true,
"IP": true,
"JSON": true,
"LHS": true,
"QPS": true,
"RAM": true,
"RHS": true,
"RPC": true,
"SLA": true,
"SMTP": true,
"SSH": true,
"TLS": true,
"TTL": true,
"UI": true,
"UID": true,
"URI": true,
"URL": true,
"UTF8": true,
"VM": true,
"XML": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment