gci

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIndent

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

func DiffFormattedFiles

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

func DiffFormattedFilesToArray

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

func ListUnFormattedFiles

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

func LoadFormat

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

func LoadFormatGoFile

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

func LocalFlagsToSections

func LocalFlagsToSections(localFlags []string) section.SectionList

func PrintFormattedFiles

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

func ProcessFiles

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

func WriteFormattedFiles

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

Types

type Cases

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