Versions in this module Expand all Collapse all v1 v1.0.0 Dec 14, 2019 Changes in this version + func Process(filename string, src []byte, opt *Options) (formatted []byte, err error) + func VendorlessPath(ipath string) string + type ImportFix struct + FixType ImportFixType + IdentName string + StmtInfo ImportInfo + type ImportFixType int + const AddImport + const DeleteImport + const SetImportName + type ImportInfo struct + ImportPath string + Name string + type ModuleErrorJSON struct + Err string + type ModuleJSON struct + Dir string + Error *ModuleErrorJSON + GoMod string + Indirect bool + Main bool + Path string + Replace *ModuleJSON + Time *time.Time + Update *ModuleJSON + Version string + Versions []string + type ModuleResolver struct + Initialized bool + Main *ModuleJSON + ModsByDir []*ModuleJSON + ModsByModPath []*ModuleJSON + func (r *ModuleResolver) ClearForNewMod() + func (r *ModuleResolver) ClearForNewScan() + type Options struct + AllErrors bool + Comments bool + Env *ProcessEnv + FormatOnly bool + Fragment bool + TabIndent bool + TabWidth int + type ProcessEnv struct + Debug bool + ForceGoPackages bool + GO111MODULE string + GOFLAGS string + GOPATH string + GOPROXY string + GOROOT string + GOSUMDB string + LocalPrefix string + Logf func(format string, args ...interface{}) + WorkingDir string + func (e *ProcessEnv) GetResolver() Resolver + type Resolver interface