()
| 57 | } |
| 58 | |
| 59 | func ExampleOption_UnwrapOrZero() { |
| 60 | fmt.Println(o.Some(4).UnwrapOrZero()) |
| 61 | fmt.Println(o.None[int]().UnwrapOrZero()) |
| 62 | |
| 63 | // Output |
| 64 | // 4 |
| 65 | // 0 |
| 66 | } |
| 67 | |
| 68 | func ExampleOption_IsSome() { |
| 69 | fmt.Println(o.Some(4).IsSome()) |
nothing calls this directly
no test coverage detected