MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / ptr

Function ptr

examples/server/elicitation/main.go:84–86  ·  view source on GitHub ↗

ptr is a helper function to create pointers for schema constraints

(v T)

Source from the content-addressed store, hash-verified

82
83// ptr is a helper function to create pointers for schema constraints
84func ptr[T any](v T) *T {
85 return &v
86}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected