gosortcode

command module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 1 Imported by: 0

README

gosortcode

gosortcode is a Go (golang) program to sort Go source code in a opinionated way

known limitations

undefined behavior

behavior is undefined if source input is not valid and compiling go code

var declarations

var declarations are not currently sorted lexicographically unlike const declarations

type Name int

const (
	Jill Name = iota
	John
	Caddy
)

is sorted

this is not:

type Name int

var (
	Jill  Name = 0
	John  Name = 1
	Caddy Name = 2
)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd handles all the logic for the gosortcode command
Package cmd handles all the logic for the gosortcode command

Jump to

Keyboard shortcuts

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