octomation / go-module

🧩 Template for a typical module written on Go.

Home Page:https://go-module.octolab.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ci/cd: run simple go fmt on ci stage

kamilsk opened this issue · comments

Motivation: pre-push can handle unformatted code, but it doesn't start at the checking stage, because there are no goimports and other tools.

For example

diff --git a/internal/command/github/view/diff.go b/internal/command/github/view/diff.go
index 8c19d61..b584cae 100644
--- a/internal/command/github/view/diff.go
+++ b/internal/command/github/view/diff.go
@@ -2,6 +2,7 @@ package view
 
 import (
        "fmt"
+
        "github.com/alexeyco/simpletable"