driver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCheckerFilePath used as default config file name
	DefaultCheckerFilePath = ".goplugin/config.toml"
)
View Source
const (
	// OSEnvName is an os variable name
	OSEnvName = "GOPLUGIN_DIR"
)

Variables

This section is empty.

Functions

func NewDefaultChecker

func NewDefaultChecker() discover.Checker

NewDefaultChecker used to create new instance of default checker

func NewOsChecker

func NewOsChecker() discover.Checker

NewOsChecker used to create new instance os checker

func NewTomlParser

func NewTomlParser() discover.Parser

NewTomlParser create new instance of parser

Types

type SourceFileReader

type SourceFileReader struct{}

SourceFileReader used to read config source from a file implement discocver.SourceReader

func NewFileReader

func NewFileReader() *SourceFileReader

NewFileReader used to create new instance of os file reader using ioutil as implementation

func (*SourceFileReader) Read

func (r *SourceFileReader) Read(filepath string) ([]byte, error)

Jump to

Keyboard shortcuts

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