golang

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package golang contains go code related mage targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Go

type Go mg.Namespace

Go groups together go related tasks.

func (Go) CheckVendor

func (Go) CheckVendor() error

CheckVendor checks if vendor is in sync with go.mod. The approach is: - Delete vendor dir - Run go mod vendor - Run git add so that any changes resulting from go vendor will be in git staging area - Run git diff to find changes - If there are change we print them, unstage them and exit with 1

func (Go) Fmt

func (Go) Fmt() error

Fmt runs go fmt.

func (Go) FmtCheck

func (Go) FmtCheck() error

FmtCheck checks if all files are formatted.

func (Go) ModSync

func (Go) ModSync() error

ModSync runs go module tidy and vendor.

Jump to

Keyboard shortcuts

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