issue

package
v0.0.0-...-6dbed23 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(err error, printer ErrPrettyPrinter)

Types

type ErrPrettyPrinter

type ErrPrettyPrinter interface {
	PrettyPrint()
}

type GlamourErrPrettyPrinter

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

func NewErrPrettyPrinter

func NewErrPrettyPrinter(issue *Issue) *GlamourErrPrettyPrinter

func (*GlamourErrPrettyPrinter) PrettyPrint

func (g *GlamourErrPrettyPrinter) PrettyPrint()
type HttpLink string

type Id

type Id int
const (
	FileNotFoundId Id = iota + 1
	TuiServerStartFailedId
)

type Issue

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

func Get

func Get(id Id) *Issue

func Values

func Values() []*Issue
func (i *Issue) DocLinks() []HttpLink
func (i *Issue) ExtLinks() []HttpLink

func (*Issue) Id

func (i *Issue) Id() Id

func (*Issue) MarkdownMsg

func (i *Issue) MarkdownMsg() MarkdownMsg

func (*Issue) Render

func (i *Issue) Render(stylePath string) (string, error)

type MarkdownMsg

type MarkdownMsg string

type Renderer

type Renderer interface {
	Render(in string, stylePath string) (string, error)
}

Jump to

Keyboard shortcuts

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