Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
func
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
bind
Method · 0.85
connect
Function · 0.85
endPOST
Method · 0.85
bind
Method · 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…