pointer

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(value any) any

Extract 递归拆解指针,获取指向值

func Of

func Of[T any](v T) *T

Of 返回一个指向值' v '的指针

func Unwrap

func Unwrap[T any](p *T, val ...T) T

Unwrap 返回指针的值,如果指针为nil则返回val

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL