diff options
Diffstat (limited to 'protoParse.go')
| -rw-r--r-- | protoParse.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protoParse.go b/protoParse.go index 2c995fe..c039028 100644 --- a/protoParse.go +++ b/protoParse.go @@ -8,6 +8,7 @@ import ( "os" "strings" + "go.wit.com/lib/fhelp" "go.wit.com/log" "golang.org/x/text/cases" "golang.org/x/text/language" @@ -69,6 +70,13 @@ func (pb *Files) protoParse(pf *File) error { return err } + uuid, version, err := fhelp.ValidProtobuf(pf.Filename) + if err != nil { + return err + } + pb.Uuid = uuid + pb.Version = version + // read in the .proto file data, err := os.ReadFile(pf.Filename) if err != nil { |
