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

Function assert

mcp/util.go:13–17  ·  view source on GitHub ↗
(cond bool, msg string)

Source from the content-addressed store, hash-verified

11)
12
13func assert(cond bool, msg string) {
14 if !cond {
15 panic(msg)
16 }
17}
18
19// remarshal marshals from to JSON, and then unmarshals into to, which must be
20// a pointer type.

Callers 4

bindMethod · 0.85
connectFunction · 0.85
endPOSTMethod · 0.85
bindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…