Skip to content

Commit 970b729

Browse files
authored
add ami to initialisms (#165)
Issue #, if available: N/A Description of changes: * Add `ami` entry to initialisms with test By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent be9e3ab commit 970b729

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/names/names.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ var (
6868
// Prevent "MultipartUpload" from becoming "MultIPartUpload"
6969
{"Ip", "IP", "ip", regexp.MustCompile("Ip(?!art)", regexp.None)},
7070
// Easy find-and-replacements...
71+
{"Ami", "AMI", "ami", nil},
7172
{"Acl", "ACL", "acl", nil},
7273
{"Acp", "ACP", "acp", nil},
7374
{"Api", "API", "api", nil},

pkg/names/names_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func TestNames(t *testing.T) {
3131
expectCamelLower string
3232
expectSnake string
3333
}{
34+
{"Ami", "AMI", "ami", "ami"},
3435
{"Identifier", "Identifier", "identifier", "identifier"},
3536
{"Id", "ID", "id", "id"},
3637
{"ID", "ID", "id", "id"},

0 commit comments

Comments
 (0)