mirror of
https://github.com/golang/go
synced 2024-11-19 05:34:40 -07:00
22 lines
488 B
Go
22 lines
488 B
Go
|
package index
|
||
|
|
||
|
func _() {
|
||
|
var (
|
||
|
aa = "123" //@item(indexAA, "aa", "string", "var")
|
||
|
ab = 123 //@item(indexAB, "ab", "int", "var")
|
||
|
)
|
||
|
|
||
|
var foo [1]int
|
||
|
foo[a] //@complete("]", indexAB, indexAA)
|
||
|
foo[:a] //@complete("]", indexAB, indexAA)
|
||
|
a[:a] //@complete("[", indexAA, indexAB)
|
||
|
a[a] //@complete("[", indexAA, indexAB)
|
||
|
|
||
|
var bar map[string]int
|
||
|
bar[a] //@complete("]", indexAA, indexAB)
|
||
|
|
||
|
type myMap map[string]int
|
||
|
var baz myMap
|
||
|
baz[a] //@complete("]", indexAA, indexAB)
|
||
|
}
|