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

Function ptr

mcp/mcp_test.go:2169–2171  ·  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

2167
2168// ptr is a helper function to create pointers for schema constraints
2169func ptr[T any](v T) *T {
2170 return &v
2171}
2172
2173func TestComplete(t *testing.T) {
2174 completionValues := []string{"python", "pytorch", "pyside"}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected