Categorygithub.com/simplylib/gosortcode
repositorypackage
0.0.6
Repository: https://github.com/simplylib/gosortcode.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

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