gotask

package
v0.0.0-...-4b3b15c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gotask implements tasks for running Go specific tools

Package gotask implements tasks for running Go specific tools

Package gotask implements tasks for running Go specific tools

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoBuildTask

func NewGoBuildTask(args ...string) goauto.Tasker

NewGoBuildTask returns a task that will build the project

func NewGoInstallTask

func NewGoInstallTask(args ...string) goauto.Tasker

NewGoInstallTask returns a task that will install the project

func NewGoLintTask

func NewGoLintTask(args ...string) goauto.Tasker

NewGoLintTask returns a task that will golint the project

func NewGoMetaLinterTask

func NewGoMetaLinterTask(args ...string) goauto.Tasker

NewGoMetaLinterTask returns a task that will run gometalinter for the project go get github.com/alecthomas/gometalinter "Concurrently run Go lint tools and normalise their output"

func NewGoPrjTask

func NewGoPrjTask(gocmd string, args ...string) goauto.Tasker

NewGoPrjTask returns a goauto.Tasker that runs a go command with optional arguments All of the commands are run on the project directory associated with goauto.TaskInfo.Target goauto.TaskInfo.Target is not updated

func NewGoTestTask

func NewGoTestTask(args ...string) goauto.Tasker

NewGoTestTask returns a new task that will run all the project tests

func NewGoVetTask

func NewGoVetTask(args ...string) goauto.Tasker

NewGoVetTask returns a new task that will vet the project

func NewGolangciLintTask

func NewGolangciLintTask(args ...string) goauto.Tasker

NewGoLintTask returns a task that will golint the project

Types

type GolangciLintTask

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

func (*GolangciLintTask) Run

func (lt *GolangciLintTask) Run(info *goauto.TaskInfo) (err error)

Jump to

Keyboard shortcuts

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