diff options
author | Nick White <git@njw.name> | 2022-10-27 16:36:31 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-10-27 16:36:31 +0100 |
commit | ed2073111d0373228c7dfd95dca877bb9420a987 (patch) | |
tree | 2950548390fd5a0d8dde565709f32ebf5adb0520 /cmd/rescribe/gui.go | |
parent | 2aabbfeb7173d682fc28cc512afc13bab2ce0ee7 (diff) |
Pass log around as pointer to fix go vet pointing out that this meant copying a sync.Mutex
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r-- | cmd/rescribe/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go index f03d66e..ef58fce 100644 --- a/cmd/rescribe/gui.go +++ b/cmd/rescribe/gui.go @@ -219,7 +219,7 @@ func formatProgressBarText(bar *widget.ProgressBar) func() string { } // startGui starts the gui process -func startGui(log log.Logger, cmd string, gbookcmd string, training string, tessdir string) error { +func startGui(log *log.Logger, cmd string, gbookcmd string, training string, tessdir string) error { myApp := app.New() myWindow := myApp.NewWindow("Rescribe OCR") |