package
Version:
v0.1.5-alpha
Opens a new window with list of versions in this module.
Published: Jan 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 11
Opens a new window with list of known importers.
Documentation
¶
GetAs returns `obj` as type `T`. Uses Golang built-in type assertion.
Implements returns whether `obj` implements `T`. Uses Golang built-in type assertion.
func MustGetAs[T any](obj any) T
MustGetAs returns `obj` as type `T`. Will panic if `obj` is not of type `T`. Uses Golang
built-in type assertion.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.