MCPcopy
hub / github.com/pocketbase/pocketbase / Pointer

Function Pointer

tools/types/types.go:6–8  ·  view source on GitHub ↗

Pointer is a generic helper that returns val as *T.

(val T)

Source from the content-addressed store, hash-verified

4
5// Pointer is a generic helper that returns val as *T.
6func Pointer[T any](val T) *T {
7 return &val
8}

Callers 15

TestPointerFunction · 0.92
TestCanAccessRecordFunction · 0.92
TestCollectionValidateFunction · 0.92
TestCollectionDBExportFunction · 0.92
setDefaultAuthOptionsMethod · 0.92
TestFileDownloadFunction · 0.92
TestEnrichRecordsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestPointerFunction · 0.74
TestCanAccessRecordFunction · 0.74
TestCollectionValidateFunction · 0.74
TestCollectionDBExportFunction · 0.74
TestFileDownloadFunction · 0.74
TestEnrichRecordsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…