| 1 | package template |
|---|---|
| 2 | |
| 3 | // Test of repeated use of wildcard in pattern. |
| 4 | |
| 5 | // NB: multiple patterns would be required to handle variants such as |
| 6 | // s[:len(s)], s[x:len(s)], etc, since a wildcard can't match nothing at all. |
| 7 | // TODO(adonovan): support multiple templates in a single pass. |
| 8 | |
| 9 | func before(s string) string { return s[:len(s)] } |
| 10 | func after(s string) string { return s } |
| 11 |
Members