diff options
| author | Jeff Carr <[email protected]> | 2023-04-25 07:47:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-25 07:47:50 -0500 |
| commit | 2de69d0086a5d97a91647ecadf438ac3989759a8 (patch) | |
| tree | c2d7949466449841400c2f8a3e4b171012dacec4 /toolkit/gocui/main.go | |
| parent | 7bb10dfb029313a9d1694a68fef2beca10ce858b (diff) | |
golang: finally doing struct defaults right
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/main.go')
| -rw-r--r-- | toolkit/gocui/main.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/toolkit/gocui/main.go b/toolkit/gocui/main.go index 34cea92..273da4b 100644 --- a/toolkit/gocui/main.go +++ b/toolkit/gocui/main.go @@ -13,11 +13,7 @@ import ( // to this toolkit from the wit/gui golang package func init() { log(logInfo, "Init() of awesome-gocui") - var test config - Set(&test, "default") - log(logNow, "Init() me.rawW", me.rawW) - // exit("test init()") - me.defaultBehavior = true + Set(&me, "default") me.groupPadding = 4 me.buttonPadding = 3 @@ -26,9 +22,6 @@ func init() { me.rawW = 7 me.rawH = 3 - me.padW = 3 - me.padH = 3 - // todo, remove all of these me.defaultWidth = 10 me.defaultHeight = 2 // this means by default one line of text in a button |
