Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Jerome1337/goimports-action

Ready to use go imports GitHub action
https://github.com/Jerome1337/goimports-action

Last synced: 2 months ago
JSON representation

Ready to use go imports GitHub action

Awesome Lists containing this project

README

        

# 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:

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

## Example Usage

```yaml
uses: Jerome1337/[email protected]
with:
goimports-path: './src'
````