remover

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StandardInput = "<standard-input>"
)

Variables

View Source
var (
	ErrPathIsNotDir = errors.New("path is not a directory")
)

Functions

func IsDir

func IsDir(path string) (string, bool)

Types

type SourceDir

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

SourceDir to validate and fix import

func NewSourceDir

func NewSourceDir(path string, isRecursive, isOutputOnly bool, generatedName string) *SourceDir

func (*SourceDir) DeleteAutoGeneratedFiles

func (d *SourceDir) DeleteAutoGeneratedFiles() ([]string, error)

type SourceFile

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

func NewSourceFile

func NewSourceFile(filePath, generatedName string) *SourceFile

NewSourceFile constructor

func (*SourceFile) IsAutoGenerated

func (f *SourceFile) IsAutoGenerated() (bool, error)

Jump to

Keyboard shortcuts

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