Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ stringInSlice
Function
stringInSlice
pkg/cmd/codespace/create.go:602–609 ·
view source on GitHub ↗
(a string, slice []string)
Source
from the content-addressed store, hash-verified
600
}
601
602
func
stringInSlice(a string, slice []string) bool {
603
for
_, b :=
range
slice {
604
if
b == a {
605
return
true
606
}
607
}
608
return
false
609
}
Callers
1
Create
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected