internal

package
v0.0.0-...-e95d944 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package internal contains functionality for x/vuln.

Index

Constants

View Source
const (

	// GoStdModulePath is the internal Go module path string used
	// when listing vulnerabilities in standard library.
	GoStdModulePath = "stdlib"

	// GoCmdModulePath is the internal Go module path string used
	// when listing vulnerabilities in the go command.
	GoCmdModulePath = "toolchain"
)

Pseudo-module paths used for parts of the Go system. These are technically not valid module paths, so we mustn't pass them to module.EscapePath. Keep in sync with vulndb/internal/database/generate.go.

View Source
const IDDirectory = "ID"

IDDirectory is the name of the directory that contains entries listed by their IDs.

Variables

This section is empty.

Functions

func AbsRelShorter

func AbsRelShorter(path string) string

AbsRelShorter takes path and returns its path relative to the current directory, if shorter. Returns path when path is an empty string or upon any error.

func GoEnv

func GoEnv(key string) (string, error)

GoEnv returns the value for key in `go env`.

Types

This section is empty.

Directories

Path Synopsis
Package buildtest provides support for running "go build" in tests.
Package buildtest provides support for running "go build" in tests.
Package derrors defines internal error values to categorize the different types error semantics supported by x/vuln.
Package derrors defines internal error values to categorize the different types error semantics supported by x/vuln.
Package govulncheck provides functionality to support the govulncheck command.
Package govulncheck provides functionality to support the govulncheck command.
Package semver provides shared utilities for manipulating Go semantic versions.
Package semver provides shared utilities for manipulating Go semantic versions.

Jump to

Keyboard shortcuts

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