pkgpath

package standard library
go1.26.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pkgpath determines the package path used by gccgo/GoLLVM symbols. This package is not used for the gc compiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSymbolFunc

func ToSymbolFunc(cmd, tmpdir string) (func(string) string, error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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