Documentation
¶
Overview ¶
Package access provides utilities for determining the accessibility of types in Go.
Index ¶
Constants ¶
View Source
const ( // The type is not accessible NotAccessible = -1 // Accessibility is not defined AccessibilityUndefined Accessibility = 0 // The type is accessible only within its own package AccessibleInsidePackage = 1 // The type is accessible from any package AccessibleEverywhere = 2 )
Variables ¶
This section is empty.
Functions ¶
func Info ¶
func Info[T any](_ T) (Namedness, Accessibility)
Types ¶
type Accessibility ¶
type Accessibility int
func (Accessibility) String ¶
func (t Accessibility) String() string
Click to show internal directories.
Click to hide internal directories.