golang

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorFyiGoClientLibrary = "github.com/error-fyi/go-fyi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Ctx              context.Context
	Logger           *logging.Logger
	InputDirectories []string
	Strict           bool
	Recursive        bool
}

Options contains the configuration options available to the Parser

type Parser

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

func NewParser

func NewParser(opts *Options) *Parser

NewParser client Parser performs all checks at initialization time

func (*Parser) AnnotateAllErrors

func (p *Parser) AnnotateAllErrors(ctx context.Context, wrapErrors, annotateOnlyTodos bool) error

func (*Parser) AnnotateSourceErrors

func (p *Parser) AnnotateSourceErrors(ctx context.Context, filename string, wrapErrors, annotateOnlyTodos bool) error

func (*Parser) ParseAllSources

func (p *Parser) ParseAllSources(ctx context.Context) ([]*api.Manifest, error)

func (*Parser) ParseSource

func (p *Parser) ParseSource(ctx context.Context, content io.Reader) (*api.Manifest, error)

Jump to

Keyboard shortcuts

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