Documentation ¶
Overview ¶
Package ami / `any meta info` - easy access to meta data
I love to be informative - and even give metadata about my content anything
use TypeName to get the name of the type of my content use TypePkgPath to get the package name of the type of my content use TypeSize to get the size (in bytes) of the type of my content use TypeString to get a 'nick-name' of the type of my content use TypeKind to get the Kind of the type of my content ( int, struct, func, ...) use TypeIsComparable ... use TypeIsVariadic (only useful, if my TypeKind is a function)
Note: I use the "reflect" package to obtain such metadata - as You may have guessed ;-)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeIsComparable ¶
func TypeIsComparable(any interface{}) bool
TypeIsComparable returns the `reflect.TypeOf(any).Comparable()`
func TypeIsVariadic ¶
func TypeIsVariadic(any interface{}) bool
TypeIsVariadic returns the `reflect.TypeOf(any).IsVariadic()` (and `false` for any non-Func)
func TypeKind ¶
func TypeKind(any interface{}) string
TypeKind returns the `reflect.TypeOf(any).Kind().String()`
func TypeName ¶
func TypeName(any interface{}) string
TypeName returns the `reflect.TypeOf(any).Name()`
func TypePkgPath ¶
func TypePkgPath(any interface{}) string
TypePkgPath returns the `reflect.TypeOf(any).PkgPath()`
func TypeSize ¶
func TypeSize(any interface{}) uintptr
TypeSize returns the `reflect.TypeOf(any).Size()`
func TypeString ¶
func TypeString(any interface{}) string
TypeString returns the `reflect.TypeOf(any).String()`
Types ¶
This section is empty.