Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnExecute = func(opt *Options) error { return nil }
OnExecute hook Before Execute
Functions ¶
Types ¶
type Formatter ¶ added in v0.2.0
type Formatter struct { // PrintResult 用于格式化过程中,打印结果 PrintResult func(fileName string, change bool, err error) // contains filtered or unexported fields }
Formatter 代码格式化实例
func NewFormatter ¶ added in v0.2.0
func NewFormatter() *Formatter
NewFormatter 创建一个新的带默认格式化规则的格式化实例
Click to show internal directories.
Click to hide internal directories.