summaryrefslogtreecommitdiff
path: root/protoParse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-06 23:29:42 -0500
committerJeff Carr <[email protected]>2025-10-06 23:29:42 -0500
commitd8ce54edfbc84d6880f06373b226976a1e702090 (patch)
tree78ef3ed626bba75b6655e32aa8aa050d422d80d5 /protoParse.go
parent1cc17983d5867a5254845bed559f8f460d360928 (diff)
autogenerated pb.Load() and pb.Save() very nice
Diffstat (limited to 'protoParse.go')
-rw-r--r--protoParse.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/protoParse.go b/protoParse.go
index 33951d2..c8ac75c 100644
--- a/protoParse.go
+++ b/protoParse.go
@@ -204,6 +204,11 @@ func (pf *File) parseForMessage(line string) *MsgName {
msg.DoHTTP = true
msg.DoMarshal = true // http requires Marshal
}
+
+ if strings.Contains(line, "`autogenpb:autosave") {
+ pf.DoSave = true
+ }
+
if strings.Contains(line, "`autogenpb:gui") {
log.Info("got autogenpb:gui")
pf.DoGui = true