package goroot

import "internal/goroot"

Index

Functions

func Importcfg

func Importcfg() (string, error)

Importcfg returns an importcfg file to be passed to the Go compiler that contains the cached paths for the .a files for the standard library.

func IsStandardPackage

func IsStandardPackage(goroot, compiler, path string) bool

IsStandardPackage reports whether path is a standard package, given goroot and compiler.

func PkgfileMap

func PkgfileMap() (map[string]string, error)

PkgfileMap returns a map of package paths to the location on disk of the .a file for the package. The caller must not modify the map.

Source Files

gc.go importcfg.go

Version
v1.20.9
Published
Sep 28, 2023
Platform
darwin/amd64
Imports
7 packages
Last checked
11 seconds ago

Tools for package owners.