Skip to content

Commit

Permalink
enable gofumpt linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Sep 30, 2024
1 parent 2ae57de commit bee005e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ linters:
- gocyclo
- err113
- gofmt
#- gofumpt
- gofumpt
- goheader
- goimports
#- gomnd
Expand Down
1 change: 0 additions & 1 deletion CSS.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ func ParseCSSStyleSheet(data []byte) error {
err = panicToErr(func() {
styleColorID = StyleColorIDFromString(styleVarName)
})

if err != nil {
return ErrCSSParse{What: "style variable ID", Value: styleVarName}
}
Expand Down
4 changes: 1 addition & 3 deletions examples/hugelist/hugelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import (
g "github.com/AllenDang/giu"
)

var (
names []string
)
var names []string

func buildRows() []*g.TableRowWidget {
rows := make([]*g.TableRowWidget, len(names))
Expand Down
3 changes: 2 additions & 1 deletion examples/keyboardShortcuts/keyboardShortcuts.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func main() {
giu.WindowShortcut{
Key: giu.KeyC,
Modifier: giu.ModControl,
Callback: func() { checkbox1 = !checkbox1 }},
Callback: func() { checkbox1 = !checkbox1 },
},
)

wnd.Run(loop)
Expand Down
1 change: 1 addition & 0 deletions examples/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func loop() {
),
)
}

func main() {
wnd := giu.NewMasterWindow("ImGui Markdown [Demo]", 640, 480, 0)
wnd.Run(loop)
Expand Down

0 comments on commit bee005e

Please sign in to comment.