Skip to content

jdeflander/goarrange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goarrange

Ever wanted a consistent ordering for declarations in your Go code? With goarrange, you can automatically follow the conventions of GoDoc! Constants come first, followed by variables, functions and types with their associated constants, variables, functions and methods. Within each of these categories, exported declarations precede unexported ones. Lastly goarrange enforces an alphabetic ordering.

Installation

$ go get github.com/jdeflander/goarrange

Usage

$ goarrange help
Automatic arrangement of Go source code

Usage:
  goarrange help
  goarrange run [-d] [-p=<path>] [-r]

Options:
  -d        Dry-run listing unarranged files
  -p=<path> Path of file or directory to arrange [default: .]
  -r        Walk directories recursively

About

Automatic arrangement of Go source code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages