()
| 74 | } |
| 75 | |
| 76 | func Example_ptrToInterface2() { |
| 77 | var i interface{} = 3 |
| 78 | Display("&i", &i) |
| 79 | // Output: |
| 80 | // Display &i (*interface {}): |
| 81 | // (*&i).type = int |
| 82 | // (*&i).value = 3 |
| 83 | } |
| 84 | |
| 85 | func Example_array() { |
| 86 | Display("x", [1]interface{}{3}) |