pkgutils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastInt

func CastInt(i interface{}) (int, error)

func GetPackageName

func GetPackageName(i ...interface{}) (string, error)

GetPackageName gets the package name for an object, a type, a function or a caller offset.

Examples:

GetPackageName(1)
GetPackageName(&MyStruct{})
GetPackageName(GetPackageName)
GetPackageName(generics.TypeOf[MyStruct]())

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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