goimports

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT, BSD-3-Clause Imports: 8 Imported by: 1

README

goimports

This package is a modified version of https://github.com/golang/tools/tree/master/cmd/goimports to be called programmatically, instead of via the binary.

Please see the LICENSE file details on the original license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name string
	In   io.Reader
	Out  io.Writer
}

type Runner

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

func New

func New(path ...string) (Runner, error)

func NewFromFiles

func NewFromFiles(files ...File) Runner

func (Runner) Run

func (r Runner) Run() error

Jump to

Keyboard shortcuts

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