mk

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoFmt

func GoFmt(ctx context.Context, workingDir string) error

func ProjectHasMigrate

func ProjectHasMigrate(projectPath string) bool

Types

type Builder

type Builder struct {
	WorkingDir string
	Migrate    bool
}

func NewBuilder

func NewBuilder(wd string, migrate bool) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

type Runner

type Runner struct {
	WorkingDir string
	Binary     string
}

func NewRunner

func NewRunner(wd, binary string) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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