summaryrefslogtreecommitdiff
path: root/generateMutex.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-12 06:13:42 -0600
committerJeff Carr <[email protected]>2025-01-12 06:13:42 -0600
commit08cd2afd86557f06d6b3f6e006d686fef4c7b2ee (patch)
tree5bff830418741290f2e13502e8137fb877a01999 /generateMutex.go
parent5b4491f17ba4325ab9783374d4efa7e4aa652a9f (diff)
adding help
Diffstat (limited to 'generateMutex.go')
-rw-r--r--generateMutex.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/generateMutex.go b/generateMutex.go
index aaa68a5..45d0d2e 100644
--- a/generateMutex.go
+++ b/generateMutex.go
@@ -20,6 +20,8 @@ func (pf *File) syncLock(w io.Writer) {
fmt.Fprintln(w, "var "+LOCK+" sync.RWMutex")
fmt.Fprintln(w, "")
/*
+ // this was a note, but the note is wrong. it seems to work fine. my example/ code was wrong. I think. notsure
+
fmt.Fprintln(w, "")
fmt.Fprintln(w, "// this is needed because it seems Marshal() fails if locks are in the structs (?)")
fmt.Fprintln(w, "// this might just be a syntactical runtime error. notsure.")