printers

package
v0.0.0-...-b474970 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package printers provides various printing implementation that can be used to print/display found link issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSON

func NewJSON() *jsoner

func NewText

func NewText(useColors bool) *texter

Types

type JSONResult

type JSONResult struct {
	Issues []models.Fix `json:"issues"`
}

type Printer

type Printer interface {
	Print(issue models.Fix) error
	PrintAll(issues []models.Fix) error
}

func GetPrinter

func GetPrinter(typ string) Printer

func NewGithub

func NewGithub() Printer

Github output format outputs issues according to Github actions format: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message

Jump to

Keyboard shortcuts

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