Documentation ¶ Index ¶ func ToPNG(input doc.Document, w io.Writer, opts Options) error type Options func (o Options) WithLineNumbers(enabled bool) Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToPNG ¶ func ToPNG(input doc.Document, w io.Writer, opts Options) error Types ¶ type Options ¶ type Options struct { FontSize float64 LineHeight float64 Padding int ShowLineNumbers bool Language lang.Language // contains filtered or unexported fields } func (Options) WithLineNumbers ¶ func (o Options) WithLineNumbers(enabled bool) Options Source Files ¶ View all Source files png.gotokenize.go Click to show internal directories. Click to hide internal directories.