move to v5

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2026-05-13 20:34:18 +03:00
parent dac811aa09
commit 586c53efa7
15 changed files with 32 additions and 7269 deletions

4
ast.go
View File

@@ -10,7 +10,7 @@ import (
"strings"
"github.com/fatih/structtag"
tag_options "go.unistack.org/micro-proto/v4/tag"
tag_options "go.unistack.org/micro-proto/v5/tag"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/proto"
)
@@ -98,7 +98,7 @@ func (g *Generator) astGenerate(plugin *protogen.Plugin) error {
return err
}
fp, err := os.OpenFile(file, os.O_WRONLY|os.O_TRUNC, os.FileMode(0644))
fp, err := os.OpenFile(file, os.O_WRONLY|os.O_TRUNC, os.FileMode(0o644))
if err != nil {
return err
}