Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer prints directives.
func (*Printer) Format ¶
func (p *Printer) Format(f directives.File) error
Format formats the given file, preserving any text between directives.
func (*Printer) Initialize ¶
func (p *Printer) Initialize(directive []directives.Directive)
Initialize initializes the padding of this printer.
func (*Printer) PrintDirective ¶
func (p *Printer) PrintDirective(directive directives.Directive) (int, error)
PrintDirective prints a directive to the given Writer.
Click to show internal directories.
Click to hide internal directories.