func main() { req := command.Read() files := req.GetProtoFile() files = vanity.FilterFiles(files, vanity.NotInPackageGoogleProtobuf) vanity.ForEachFile(files, vanity.TurnOnMarshalerAll) vanity.ForEachFile(files, vanity.TurnOnSizerAll) vanity.ForEachFile(files, vanity.TurnOnUnmarshalerAll) resp := command.Generate(req) command.Write(resp) }
func main() { req := command.Read() files := req.GetProtoFile() vanity.ForEachFile(files, vanity.TurnOffGogoImport) vanity.ForEachFile(files, vanity.TurnOnMarshalerAll) vanity.ForEachFile(files, vanity.TurnOnSizerAll) vanity.ForEachFile(files, vanity.TurnOnUnmarshalerAll) resp := command.Generate(req) command.Write(resp) }
func main() { req := command.Read() files := req.GetProtoFile() files = vanity.FilterFiles(files, vanity.NotInPackageGoogleProtobuf) vanity.ForEachFile(files, vanity.TurnOnMarshalerAll) vanity.ForEachFile(files, vanity.TurnOnSizerAll) vanity.ForEachFile(files, vanity.TurnOnUnmarshalerAll) vanity.ForEachFieldInFilesExcludingExtensions(vanity.OnlyProto2(files), vanity.TurnOffNullableForNativeTypesWithoutDefaultsOnly) vanity.ForEachFile(files, vanity.TurnOffGoUnrecognizedAll) resp := command.Generate(req) command.Write(resp) }