package
Version:
v0.19.0
Opens a new window with list of versions in this module.
Published: Oct 21, 2026
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
¶
Package ptrx 提供指针相关的泛型工具函数。
包含指针的创建(Of)和安全解引用(Deref)等功能。
func Deref[T any](p *T, fallback T) T
Deref 解引用 p,当 p 为 nil 时返回 fallback。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.