diff options
| author | Jeff Carr <[email protected]> | 2025-01-09 05:20:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-09 05:20:00 -0600 |
| commit | 78bfce745b3a966e34c8468eabf925c43167ae44 (patch) | |
| tree | df1c4716b2014be1ceed1c0165314ddc493ce4ab /sort.go | |
| parent | e6a332962833dadce26748bd3f2fc436a44b0200 (diff) | |
all functions are passed the informationn in the protobuf
Diffstat (limited to 'sort.go')
| -rw-r--r-- | sort.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,10 +7,11 @@ import ( "strings" ) -func makeSortfile() { - f, _ := os.OpenFile(sortmap["protobase"]+".sort.pb.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) +// passes in the protobuf file protobuf +func (pb *Files) makeSortfile(pf *File) { + f, _ := os.OpenFile(pf.Filebase+".sort.pb.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) - header(f, sortmap) + header(f, pf) if sortmap["lock"] == "all" { // if the lock is set to 'all' this means the mutex was put in the protoc-gen-go struct |
