Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ ExampleOption_Expect
Function
ExampleOption_Expect
pkg/option/option_test.go:96–100 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
94
}
95
96
func
ExampleOption_Expect() {
97
fmt.Println(o.Some(4).Expect(
"oops"
))
98
99
// Output: 4
100
}
101
102
func
ExampleMap() {
103
fmt.Println(o.Map(o.Some(2), double))
Callers
nothing calls this directly
Calls
2
Println
Method · 0.80
Expect
Method · 0.80
Tested by
no test coverage detected