vet

Imports

Imports #

"context"
"fmt"
"path/filepath"
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/internal/load"
"cmd/go/internal/modload"
"cmd/go/internal/trace"
"cmd/go/internal/work"
"bytes"
"encoding/json"
"errors"
"flag"
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"cmd/go/internal/base"
"cmd/go/internal/cmdflag"
"cmd/go/internal/work"

Constants & Variables

CmdVet var #

var CmdVet = *ast.UnaryExpr

vetTool var #

vetTool specifies the vet command to run. Any tool that supports the (still unpublished) vet command-line protocol may be supplied; see golang.org/x/tools/go/analysis/unitchecker for one implementation. It is also used by tests. The default behavior (vetTool=="") runs 'go tool vet'.

var vetTool string

Functions

exitWithUsage function #

func exitWithUsage()

init function #

Break init loop.

func init()

init function #

func init()

parseVettoolFlag function #

func parseVettoolFlag(args []string)

runVet function #

func runVet(ctx context.Context, cmd *base.Command, args []string)

vetFlags function #

vetFlags processes the command line, splitting it at the first non-flag into the list of flags and list of packages.

func vetFlags(args []string) (passToVet []string, packageNames []string)

Generated with Arrow