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.4
Published
Apr 26, 2023
Platform
js/wasm
Imports
7 packages
Last checked
33 seconds ago

Tools for package owners.