Versions in this module Expand all Collapse all v1 v1.0.0 Sep 26, 2022 Changes in this version + func UseGoFmt(simplifyAST bool) func(*Formatter) + func UseGoImports(f *Formatter) + type FmtError struct + Column int + FileName string + Line int + Msg string + func (e FmtError) Error() string + type Formatter struct + ScriptFormatters map[string]func([]byte) ([]byte, *FmtError) + StyleFormatter func([]byte) ([]byte, *FmtError) + func NewFormatter(opts ...func(*Formatter)) *Formatter + func (f *Formatter) Diff(filename string, input io.Reader, output io.Writer) (bool, error) + func (f *Formatter) FormatHTML(filename string, in io.Reader, out io.Writer) error + func (f *Formatter) FormatScript(scriptType string, scriptContent []byte) ([]byte, *FmtError) + func (f *Formatter) FormatStyle(styleContent []byte) ([]byte, *FmtError)