MCPcopy
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
96func ExampleOption_Expect() {
97 fmt.Println(o.Some(4).Expect("oops"))
98
99 // Output: 4
100}
101
102func ExampleMap() {
103 fmt.Println(o.Map(o.Some(2), double))

Callers

nothing calls this directly

Calls 2

PrintlnMethod · 0.80
ExpectMethod · 0.80

Tested by

no test coverage detected