Skip to content

Commit 29480ff

Browse files
[fix] pass plural names from gengo while defining interface
Signed-off-by: varshaprasad96 <[email protected]>
1 parent bf72d7f commit 29480ff

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

examples/pkg/clusterclient/clientset.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/pkg/clusterclient/typed/example/v1/examplev1.go

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

namer/namer.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ package namer
1919
var consonants = "bcdfghjklmnpqrstvwxyz"
2020

2121
type Namer struct {
22-
// to add any exceptions to look up
22+
// use this to add any exceptions to look up
2323
Exceptions map[string]string
24-
// Use this to either convert everything to lowercase/upper case
24+
// TODO: Use this to either convert everything to lowercase/upper case
2525
// or anything else based on whether the parameter will be public
26-
// or private
26+
// or private. With this passing separate template functions can be avoided.
2727
Finalize func(string) string
2828
}
2929

30+
// Name gives out the final plural names which are
31+
// to be scaffolded
3032
func (n *Namer) Name(input string) string {
3133
singular := input
3234
var plural string

pkg/internal/templates.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)