goroot

package
v0.11.0-0.dev Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package goroot is a copy of package internal/goroot in the main GO repot. It provides a utility to produce an importcfg and import path to package file map mapping standard library packages to the locations of their export data files.

Index

Constants

This section is empty.

Variables

This section is empty.

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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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