Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/google/go-github
/ Ptr
Function
Ptr
tools/redundantptr/testdata/src/no-warnings/github.go:42–44 ·
view source on GitHub ↗
(v T)
Source
from the content-addressed store, hash-verified
40
func
String(v string) *string {
return
Ptr(v) }
41
42
func
Ptr[T any](v T) *T {
43
return
&v
44
}
Callers
6
main
Function · 0.70
unqualifiedIdentifierArgumentDoesNotWarn
Function · 0.70
Bool
Function · 0.70
Int
Function · 0.70
Int64
Function · 0.70
String
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected