app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(pkgDir, interfaceName string, opts ...Option) *App

func (*App) Run

func (a *App) Run() error

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

type Option

type Option func(*App)

func WithLogger

func WithLogger(logger Logger) Option

func WithOutputDirectory

func WithOutputDirectory(path string) Option

func WithVersion

func WithVersion(version string) Option

WithVersion replaces the version, generated based on the module information.

Mainly helpful for tests.

Jump to

Keyboard shortcuts

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