From 21dbcdf6495ec325cf68b7cfd83fcefb2803147c Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Thu, 23 Apr 2020 15:58:53 -0700 Subject: [PATCH] linters: Add goimports Signed-off-by: Mark D Horn --- .golangci.yml | 1 + gui/pages/timezone.go | 4 ++-- tui/menu_button.go | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 02c0dc7..ed8b84e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,6 +14,7 @@ linters: - ineffassign - gocyclo - gofmt + - goimports - golint - deadcode - varcheck diff --git a/gui/pages/timezone.go b/gui/pages/timezone.go index 004be24..87a8640 100644 --- a/gui/pages/timezone.go +++ b/gui/pages/timezone.go @@ -1,17 +1,17 @@ -// Copyright © 2019 Intel Corporation +// Copyright © 2020 Intel Corporation // // SPDX-License-Identifier: GPL-3.0-only package pages import ( - "github.com/clearlinux/clr-installer/utils" "strings" "github.com/gotk3/gotk3/gtk" "github.com/clearlinux/clr-installer/model" "github.com/clearlinux/clr-installer/timezone" + "github.com/clearlinux/clr-installer/utils" ) // TimezonePage is a simple page to help with TimezonePage settings diff --git a/tui/menu_button.go b/tui/menu_button.go index d194b44..27b0ad0 100644 --- a/tui/menu_button.go +++ b/tui/menu_button.go @@ -1,4 +1,4 @@ -// Copyright © 2018 Intel Corporation +// Copyright © 2020 Intel Corporation // // SPDX-License-Identifier: GPL-3.0-only @@ -7,12 +7,12 @@ package tui import ( "fmt" "strings" + "sync/atomic" + "time" "github.com/VladimirMarkelov/clui" xs "github.com/huandu/xstrings" term "github.com/nsf/termbox-go" - "sync/atomic" - "time" ) // MenuButton is the implementation of a clui button with simpler