extern

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

README

Code copied from other Go modules

This package holds code copied and modified from other open source projects. Each file is licensed under its original license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Path string    // The main package path
	Main Module    // The module containing the main package
	Deps []*Module // Module dependencies
}

BuildInfo represents the build information read from the binary.

func ParseBuildInfo

func ParseBuildInfo(data string) (info *BuildInfo, ok bool)

ParseBuildInfo returns the parsed build information extracted from the provided string. The information is available only in binaries built with module support.

type Module

type Module struct {
	Path    string  // module path
	Version string  // module version
	Sum     string  // checksum
	Replace *Module // replaced by this module
}

Module represents a module.

Jump to

Keyboard shortcuts

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