pkgutils

package
v0.12.1 Latest Latest
Warning

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

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

Documentation

Overview

Deprecated: This package is deprecated and will be removed in a future release. Please use the pkgutils package provided by github.com/mandelsoft/goutils.

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