diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8200a84a47a18c023ca4e59681e67a565e9ef169..8abfba638b1cf00f04c74ef7cecb59fd2a3ac340 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,3 +39,17 @@ jobs: GITHUB_TOKEN_PUBLIC: ${{ secrets._GITHUB_TOKEN_PUBLIC }} GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }} + + lint: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Check Code Formation + run: find . -name "*.go" | while read line; do [ -z "$(gofmt -d "$line" | head)" ] || exit 1; done diff --git a/webui/packed_assets.go b/webui/packed_assets.go index b75ab6679593d27c28dd873de0297a7606bfc986..90bc6b386a8f65616f8a8ee297e108cd5aa1ba36 100644 --- a/webui/packed_assets.go +++ b/webui/packed_assets.go @@ -134,7 +134,7 @@ func (fs vfsgen۰FS) Open(path string) (http.File, error) { } return &vfsgen۰CompressedFile{ vfsgen۰CompressedFileInfo: f, - gr: gr, + gr: gr, }, nil case *vfsgen۰DirInfo: return &vfsgen۰Dir{