MCPcopy
hub / github.com/wavetermdev/waveterm / Ptr

Function Ptr

pkg/util/utilfn/utilfn.go:969–971  ·  view source on GitHub ↗

** * Utility function for referencing a type with a pointer. * This is the same as dereferencing with &, but unlike & * you can directly use it on the ouput of a function * without needing to create an intermediate variable */

(x T)

Source from the content-addressed store, hash-verified

967 * without needing to create an intermediate variable
968 */
969func Ptr[T any](x T) *T {
970 return &x
971}
972
973/**
974 * Utility function to convert know architecture patterns

Callers 2

findSshConfigKeywordsFunction · 0.92
findSshDefaultsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected