symbol

package
v1.19.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name struct {
	PkgPath string // Full package import path.
	Name    string // Symbol name.
}

Name uniquely identifies a named symbol within a program.

This is a logical equivalent of a symbol name used by traditional linkers. The following properties should hold true:

  • Each named symbol within a program has a unique Name.
  • Similarly named methods of different types will have different symbol names.
  • The string representation is opaque and should not be attempted to reversed to a struct form.

func New

func New(o types.Object) Name

New constructs SymName for a given named symbol.

func (Name) IsMethod

func (n Name) IsMethod() (recv string, method string, ok bool)

func (Name) String

func (n Name) String() string

Jump to

Keyboard shortcuts

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