Use upper casing in function name for vocabularies.
このコミットが含まれているのは:
コミット
7b4fadd871
|
@ -250,7 +250,7 @@ func rootDefinitions(vocabName string, m *ManagerGenerator, tgs []*TypeGenerator
|
||||||
for _, tg := range tgs {
|
for _, tg := range tgs {
|
||||||
ctors = append(ctors, codegen.NewCommentedFunction(
|
ctors = append(ctors, codegen.NewCommentedFunction(
|
||||||
m.pkg.Path(),
|
m.pkg.Path(),
|
||||||
fmt.Sprintf("New%s%s", tg.PublicPackage().Name(), tg.TypeName()),
|
fmt.Sprintf("New%s%s", vocabName, tg.TypeName()),
|
||||||
/*params=*/ nil,
|
/*params=*/ nil,
|
||||||
[]jen.Code{jen.Qual(tg.PublicPackage().Path(), tg.InterfaceName())},
|
[]jen.Code{jen.Qual(tg.PublicPackage().Path(), tg.InterfaceName())},
|
||||||
[]jen.Code{
|
[]jen.Code{
|
||||||
|
|
読み込み中…
新しいイシューから参照