gci

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 17 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndent added in v0.4.0

func AddIndent(in *[]byte, first *bool)

func DiffFormattedFiles added in v0.3.0

func DiffFormattedFiles(paths []string, cfg config.Config) error

func DiffFormattedFilesToArray added in v0.3.4

func DiffFormattedFilesToArray(paths []string, cfg config.Config, diffs *[]string, lock *sync.Mutex) error

func ListUnFormattedFiles added in v0.11.0

func ListUnFormattedFiles(paths []string, cfg config.Config) error

func LoadFormat added in v0.11.2

func LoadFormat(in []byte, path string, cfg config.Config) (src, dist []byte, err error)

func LoadFormatGoFile added in v0.3.0

func LoadFormatGoFile(file io.FileObj, cfg config.Config) (src, dist []byte, err error)

func LocalFlagsToSections added in v0.3.0

func LocalFlagsToSections(localFlags []string) section.SectionList

func PrintFormattedFiles added in v0.3.0

func PrintFormattedFiles(paths []string, cfg config.Config) error

func ProcessFiles added in v0.4.0

func ProcessFiles(fileGenerator io.FileGeneratorFunc, cfg config.Config, fileFunc fileFormattingFunc) error

func WriteFormattedFiles added in v0.3.0

func WriteFormattedFiles(paths []string, cfg config.Config) error

Types

type Cases added in v0.11.2

type Cases struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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