Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Jerome1337/goimports-action
- Owner: Jerome1337
- License: mit
- Created: 2020-04-13T13:49:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-22T07:29:48.000Z (over 4 years ago)
- Last Synced: 2024-10-05T01:32:37.661Z (3 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-actions - Run Goimports to check Golang imports order
- fucking-awesome-actions - Run Goimports to check Golang imports order
- awesome-workflows - Run Goimports to check Golang imports order
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'
````