opts

package
v0.0.0-...-ac2c546 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultVerbose ...
	DefaultVerbose = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*Opts)

Opt ...

func WithLogger

func WithLogger(logger *zap.Logger) Opt

WithLogger ...

type Opts

type Opts struct {
	// Verbose toggles verbosity
	Verbose bool
	// Path to th sources
	Path string
	// Logger ...
	Logger *zap.Logger
}

Opts ...

func New

func New(opts ...Opt) *Opts

New ...

func NewDefaultOpts

func NewDefaultOpts() *Opts

DefaultOpts ...

func (*Opts) Configure

func (s *Opts) Configure(opts ...Opt) error

Configure ...

Jump to

Keyboard shortcuts

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