Small fixes for protogen plugin #107

Merged
fyrchik merged 8 commits from fyrchik/frostfs-api-go:protogen-config into master 2024-09-04 19:51:17 +00:00
Showing only changes of commit 4a00ef946f - Show all commits

View file

@ -148,7 +148,7 @@ func emitOneofGettersSetters(g *protogen.GeneratedFile, msg *protogen.Message, f
g.P("}")
ft := fieldType(g, ff)
emitGetterSetter(g, ff.GoIdent.GoName, ff.GoName, ft.String(), "nil")
emitGetterSetter(g, ff.GoIdent.GoName, ff.GoName, ft.String(), fieldDefaultValue(ff))
}
}