mirror of https://github.com/golang/go.git
This adds two new snippets, centred around string manipulation. The first snippet applies to variables of type string, and is called split. When used, it replaces `someStringVar.split!` with `strings.Split(someStringVar, "|")`, where `|` indicates the location of the cursor. The second snippet is essentially the same as the first, but in "reverse". Meaning that rather than going from a string to a slice of strings, it goes from a slice of strings to a single string: `someStringSlice.join!` -> `strings.Join(someStringSlice, "|")`. Change-Id: I0e303a39766463034687f76a5d9dbab419e2021b GitHub-Last-Rev: 935cc418e75d54f0e5b1194cdb576c8829252a26 GitHub-Pull-Request: golang/tools#347 Reviewed-on: https://go-review.googlesource.com/c/tools/+/362474 Reviewed-by: Robert Findley <rfindley@google.com> Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> |
||
|---|---|---|
| .. | ||
| builtin.go | ||
| completion.go | ||
| deep_completion.go | ||
| deep_completion_test.go | ||
| format.go | ||
| keywords.go | ||
| labels.go | ||
| literal.go | ||
| package.go | ||
| package_test.go | ||
| postfix_snippets.go | ||
| printf.go | ||
| printf_test.go | ||
| snippet.go | ||
| statements.go | ||
| util.go | ||
| util_test.go | ||