blob: 8251a6384a32ba52e2816fb795f3d5166d94cbea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// +build go1.18
//go:build go1.18
package snippets
type Tree[T any] struct{}
func (tree Tree[T]) Do(f func(s T)) {}
func _() {
_ = "func(...) {}" //@item(litFunc, "func(...) {}", "", "var")
var t Tree[string]
t.Do(fun) //@complete(")", litFunc),snippet(")", litFunc, "func(s string) {$0\\}", "func(s string) {$0\\}")
}
|