From 254ca4d434b067dec67a50d5d29bb524a23643f4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 11 Jan 2025 06:15:40 -0600 Subject: [PATCH] Notes added by 'git notes append' --- 0b4ab2fb9f860e21a8ca43390fa6a4af4678f29a | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/0b4ab2fb9f860e21a8ca43390fa6a4af4678f29a b/0b4ab2fb9f860e21a8ca43390fa6a4af4678f29a index 4b8ff69..94c9895 100644 --- a/0b4ab2fb9f860e21a8ca43390fa6a4af4678f29a +++ b/0b4ab2fb9f860e21a8ca43390fa6a4af4678f29a @@ -49,3 +49,24 @@ gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= // `autogen:file.find.pb.go` + +// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT. +// This file was autogenerated with autogenpb v0.0.40-9-gf329702 2025.01.10_2318 +// go install go.wit.com/apps/autogenpb@latest +// +// define which structs (messages) you want to use in the .proto file +// Then sort.pb.go and marshal.pb.go files are autogenerated +// +// autogenpb uses it and has an example .proto file with instructions +// + +package main + +// TESTING 2 +// just a simple Append() shortcut (but still uses the mutex lock) +func (x *Files) Append(y *File) { + x.Lock.Lock() + defer x.Lock.Unlock() + + x.Files = append(x.Files, y) +}