package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Mar 14, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AnyPtr(v interface{}) interface{}
AnyPtr 将任意类型的值转换为指针
如果值已经是指针,则直接返回
如果值是 nil,则返回 nil
否则创建一个新的指针指向该值
Source Files
¶
Click to show internal directories.
Click to hide internal directories.