goarrange

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2020 License: MIT Imports: 9 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL