template type Optional(A) A 'gotemplate'-based type for providing optional semantics without using pointers.
| 13 | |
| 14 | // A 'gotemplate'-based type for providing optional semantics without using pointers. |
| 15 | type String struct { |
| 16 | V string |
| 17 | Defined bool |
| 18 | } |
| 19 | |
| 20 | // Creates an optional type with a given value. |
| 21 | func OString(v string) String { |
nothing calls this directly
no outgoing calls
no test coverage detected