package
Version:
v2.5.0
Opens a new window with list of versions in this module.
Published: Jul 16, 2022
License: BSD-2-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gox for basic go utils
func CurrentGoroutineId() int64
CurrentGoroutineId get current goroutine id by walk stack.
This func get goroutine id by parse current stack string, call this function is expensive.
func ForceCast[S any, T any](v S) T
ForceCast force cast value to another type. The two type must have same size.
IsType return true if an interface is type T
SizeOf return size of type T
func Zero[T any]() (value T)
Zero return zero value for type T
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.