Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ ExampleOption_Unwrap
Function
ExampleOption_Unwrap
pkg/option/option_test.go:32–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
)
31
32
func
ExampleOption_Unwrap() {
33
fmt.Println(o.Some(4).Unwrap())
34
// Output: 4
35
}
36
37
func
ExampleOption_UnwrapOr() {
38
fmt.Println(o.Some(4).UnwrapOr(3))
Callers
nothing calls this directly
Calls
2
Println
Method · 0.80
Unwrap
Method · 0.45
Tested by
no test coverage detected