code

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorPrinter

type ColorPrinter interface {
	Gray(in string) string
}

type Render

type Render struct {
	// contains filtered or unexported fields
}

func NewRender

func NewRender(printer ColorPrinter) *Render

func (*Render) SourceCode

func (r *Render) SourceCode(ref models.CodeReference, highlight bool) []byte

func (*Render) SourceCodeWithoutOffset

func (r *Render) SourceCodeWithoutOffset(ref models.CodeReference, highlight bool) []byte

Jump to

Keyboard shortcuts

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