This website requires JavaScript.
Explore
Help
Sign In
ai
/
byre
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
18
Wiki
Activity
Files
ee26e27f3b4e8929c7181abc032f288dd1f88fb9
byre
/
internal
/
api
/
deref.go
T
10 lines
98 B
Go
Raw
Normal View
History
Unescape
Escape
Simplify code found by simplicity audit of
fa73b74
2026-10-23 13:50:09 -07:00
package
api
func
Deref
[
T
any
](
p
*
T
)
T
{
var
zero
T
if
p
==
nil
{
return
zero
}
return
*
p
}
Reference in New Issue
Copy Permalink