diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 15:48:28 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 15:48:28 -0600 |
| commit | 49f8e1c043ed5dfe39d0c56a9fd52b20fb069bb2 (patch) | |
| tree | cf8dc6f2f6f853e4ed90b64ab9f9cc6eadfb1bb1 /structs.go | |
| parent | 4bc9fa41b77090264716670635e3155a8def7ff6 (diff) | |
dropdown menu selects and changes text again
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |
