modinfo

package
v0.0.0-...-ea27d6f Latest Latest
Warning

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

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

Documentation

Overview

Package modinfo produces modinfo records for Go's importconfig which are consumed by `go tool link` and later accessible from runtime/debug.ReadBuildInfo()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteModInfo

func WriteModInfo(goTool, modulePath, pkgPath, buildMode, cgoEnabled, goos, goarch, outputFile string) error

WriteModInfo writes mod info to the given output file

func WriteModuleVersion

func WriteModuleVersion(modulePath, version string, validate bool, outputFile string) error

WriteModuleVersion generates a module version file for a third-party Go module.

If validate is true, WriteModuleVersion additionally checks that the given module path and version are valid according to Go's module version numbering standard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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