formatter

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package formatter contains lint result formatters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFormatter

type DefaultFormatter struct{}

DefaultFormatter represent default formatter

func (*DefaultFormatter) Format

func (f *DefaultFormatter) Format(res *lint.Result) (string, error)

Format formats the lint.Result

func (*DefaultFormatter) Name

func (f *DefaultFormatter) Name() string

Name returns name of formatter

type JSONFormatter

type JSONFormatter struct{}

JSONFormatter represent default formatter

func (*JSONFormatter) Format

func (f *JSONFormatter) Format(res *lint.Result) (string, error)

Format formats the lint.Result

func (*JSONFormatter) Name

func (f *JSONFormatter) Name() string

Name returns name of formatter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL