package pkgpath
import "cmd/internal/pkgpath"
Package pkgpath determines the package path used by gccgo/GoLLVM symbols. This package is not used for the gc compiler.
Index ¶
Functions ¶
func ToSymbolFunc ¶
ToSymbolFunc returns a function that may be used to convert a package path into a string suitable for use as a symbol. cmd is the gccgo/GoLLVM compiler in use, and tmpdir is a temporary directory to pass to os.CreateTemp(). For example, this returns a function that converts "net/http" into a string like "net..z2fhttp". The actual string varies for different gccgo/GoLLVM versions, which is why this returns a function that does the conversion appropriate for the compiler in use.
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.