()
| 3 | import "fmt" |
| 4 | |
| 5 | func ExampleOf() { |
| 6 | result1 := Of(123) |
| 7 | result2 := Of("abc") |
| 8 | |
| 9 | fmt.Println(*result1) |
| 10 | fmt.Println(*result2) |
| 11 | |
| 12 | // Output: |
| 13 | // 123 |
| 14 | // abc |
| 15 | } |
| 16 | |
| 17 | func ExampleUnwrap() { |
| 18 | a := 123 |
nothing calls this directly
no test coverage detected
searching dependent graphs…