MCPcopy
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
32func ExampleOption_Unwrap() {
33 fmt.Println(o.Some(4).Unwrap())
34 // Output: 4
35}
36
37func ExampleOption_UnwrapOr() {
38 fmt.Println(o.Some(4).UnwrapOr(3))

Callers

nothing calls this directly

Calls 2

PrintlnMethod · 0.80
UnwrapMethod · 0.45

Tested by

no test coverage detected