Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wit-bindgen
/ ListParam2
Function
ListParam2
tests/runtime/lists/test.go:39–43 ·
view source on GitHub ↗
(x string)
Source
from the content-addressed store, hash-verified
37
}
38
39
func
ListParam2(x string) {
40
if
x !=
"foo"
{
41
panic(
"trouble"
)
42
}
43
}
44
45
func
ListParam3(x []string) {
46
if
!slices.Equal(x, []string{
"foo"
,
"bar"
,
"baz"
}) {
Callers
1
Run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected