From 78bfce745b3a966e34c8468eabf925c43167ae44 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Jan 2025 05:20:00 -0600 Subject: all functions are passed the informationn in the protobuf --- sortnew.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sortnew.go') diff --git a/sortnew.go b/sortnew.go index 6479a2d..5b6084b 100644 --- a/sortnew.go +++ b/sortnew.go @@ -5,10 +5,10 @@ import ( "strings" ) -func makeNewSortfile() { - f, _ := os.OpenFile(sortmap["protobase"]+".newsort.pb.go", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) +func (pb *Files) makeNewSortfile(pf *File) { + f, _ := os.OpenFile(pf.Filebase+".newsort.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 -- cgit v1.2.3