internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FILE_PROCESSING_LIMIT = 100

Variables

This section is empty.

Functions

func Fix

func Fix(dirPath string, exts string, printMode PrintMode) error

func Scan

func Scan(dirPath string, exts string, printMode PrintMode) error

Types

type FileStatus

type FileStatus int
const (
	FS_NONE         FileStatus = iota
	FS_FIX_REQUIRED FileStatus = iota
	FS_IGNORED      FileStatus = iota
	FS_FIXED        FileStatus = iota
	FS_ERROR        FileStatus = iota
)

type Logger

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

func NewLogger

func NewLogger(printMode PrintMode) *Logger

func (*Logger) PrintIntro

func (log *Logger) PrintIntro(dirPath string, exts string, workMode WorkMode)

func (*Logger) PrintResult

func (log *Logger) PrintResult()

func (*Logger) PrintTableHeader

func (log *Logger) PrintTableHeader()

func (*Logger) PrintTableRow

func (log *Logger) PrintTableRow(fi *_FileInfo)

type PrintMode

type PrintMode string
const (
	PM_NONE      PrintMode = "none"
	PM_ALL       PrintMode = "all"
	PM_IMPORTANT PrintMode = "important"
	PM_REPORT    PrintMode = "report"
)

type WorkMode

type WorkMode string
const (
	WM_SCAN WorkMode = "scan"
	WM_FIX  WorkMode = "fix"
)

Jump to

Keyboard shortcuts

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