package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 13, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ExtractFromPtr[T Number](p *T) T
ExtractFromPtr 若入参指针为nil,则返回0;否则,返回指针指向的内存所存储的值。
func PositiveToPtr[T Number](v T) *T
PositiveToPtr 若入参v大于零,则返回其指针;否则返回nil。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.