Skip to content

Check Golang imports order

Actions
Check imports order of your code using goimports
v1.0.3
Latest
Star (5)

Go Imports Action

This action execute goimports command and return the output if the command fail.

Inputs

goimports-path

Path where your Go files are. This path will be used by goimports command to check imports of this files.

Default one is the repository root (./).

Outputs

goimports-output

The goimports output if the command fail.

For Example:

All following has imports not properly ordered
handlers/writer.go
services/writer/writerServices.go

Example Usage

uses: Jerome1337/goimports-action@v1.0.2
with:
  goimports-path: './src'

Check Golang imports order is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check imports order of your code using goimports
v1.0.3
Latest

Check Golang imports order is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.