golang

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Type string = "golang"

Variables

View Source
var Manifests = []string{"go.mod"}

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func FormatVersion

func FormatVersion(version string) string

Format Version String

func GenerateCpes

func GenerateCpes(version string, paths []string) []string

func Scan

func Scan(data interface{}) interface{}

func SplitPath

func SplitPath(path string) []string

Split go package path

Types

type GoBinMetadata

type GoBinMetadata struct {
	Architecture     string `json:"architecture,omitempty"`
	Compiler         string `json:"compiler,omitempty"`
	OS               string `json:"os,omitempty"`
	GoCompileRelease string `json:"goCompileRelease,omitempty"`
	H1Digest         string `json:"h1Digest,omitempty"`
	Path             string `json:"path,omitempty"`
	Version          string `json:"version,omitempty"`
}

GoBinMetadata go binary metadata

type GoDevelMetadata

type GoDevelMetadata struct {
	Path             string `json:"path"`
	Version          string `json:"version"`
	GoCompileRelease string `json:"goCompileRelease"`
}

GoDevelMetadata - go devel metadata

type GoModMetadata

type GoModMetadata struct {
	Path    string `json:"path"`
	Version string `json:"version"`
}

GoModMetadata go module metadata

Jump to

Keyboard shortcuts

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