format

package
v0.0.0-...-fb04572 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsiaLatin  = "([\u4E00-\u9FFF])([A-Za-z0-9\u00C0-\u00FF\u0100-\u017F\u0180-\u024F\u1E00-\u1EFF])"
	LatingAsia = "([A-Za-z0-9\u00C0-\u00FF\u0100-\u017F\u0180-\u024F\u1E00-\u1EFF])([\u4E00-\u9FFF])"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicDoc

type BasicDoc struct {
	Path   string
	Match  string
	Ignore []string
	Debug  bool
	Lint   bool

	ErrorCount int
	// contains filtered or unexported fields
}

func (*BasicDoc) Format

func (b *BasicDoc) Format() error

func (*BasicDoc) GetErrorCount

func (b *BasicDoc) GetErrorCount() int

func (*BasicDoc) ListFile

func (b *BasicDoc) ListFile() ([]string, error)

type Document

type Document interface {
	Format() error
	ListFile() ([]string, error)
	GetErrorCount() int
}

func NewBasicDocument

func NewBasicDocument(opt Option) Document

type Option

type Option struct {
	Debug  bool
	Lint   bool
	Path   string
	Match  string
	Ignore []string
}

Jump to

Keyboard shortcuts

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