diff --git a/examples/extrawidgets/extrawidgets.go b/examples/extrawidgets/extrawidgets.go index 9bc36cd6..dde13b2e 100644 --- a/examples/extrawidgets/extrawidgets.go +++ b/examples/extrawidgets/extrawidgets.go @@ -1,3 +1,4 @@ +// Package main presents giu extra widgets (Widgets created in giu, not native to imgui). package main import ( @@ -7,7 +8,7 @@ import ( ) var ( - showPD bool = true + showPD = true radius float32 = 20 stack int32 ) diff --git a/examples/rangebuilder/rangebuilder.go b/examples/rangebuilder/rangebuilder.go index be0e52b0..77b0f2d2 100644 --- a/examples/rangebuilder/rangebuilder.go +++ b/examples/rangebuilder/rangebuilder.go @@ -1,3 +1,4 @@ +// Package main presents usage of giu.RangeBuilder. package main import ( @@ -21,7 +22,7 @@ func loop() { ), g.Dummy(0, 8), g.Label("Below buttons are generated by RangeBuilder"), - g.RangeBuilder("Buttons", []string{"Button1", "Button2", "Button3"}, func(i int, str string) g.Widget { + g.RangeBuilder("Buttons", []string{"Button1", "Button2", "Button3"}, func(_ int, str string) g.Widget { return g.Button(str).OnClick(func() { fmt.Println(str, "is clicked") }) diff --git a/examples/transparent/transparent.go b/examples/transparent/transparent.go index 59f9fc89..504fbaad 100644 --- a/examples/transparent/transparent.go +++ b/examples/transparent/transparent.go @@ -1,3 +1,4 @@ +// Package main shows how to create a transparent window with custom drawing. package main import (