Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / refactor / eg / testdata / C.template
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 }