From 49f8e1c043ed5dfe39d0c56a9fd52b20fb069bb2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Feb 2025 15:48:28 -0600 Subject: dropdown menu selects and changes text again --- structs.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 1f01305..84b0a3a 100644 --- a/structs.go +++ b/structs.go @@ -160,8 +160,9 @@ func (w *guiWidget) Write(p []byte) (n int, err error) { return len(p), nil } -// this sets the `default` in the structs -// this is cool code. thank Alex Flint & other GO devs for this code +// THIS IS GO COMPILER MAGIC +// this sets the `default` in the structs above on init() +// this is cool code. thank the GO devs for this code and Alex Flint for explaining it to me func Set(ptr interface{}, tag string) error { if reflect.TypeOf(ptr).Kind() != reflect.Ptr { log.Log(ERROR, "Set() Not a pointer", ptr, "with tag =", tag) -- cgit v1.2.3