mirror of https://github.com/golang/go.git
19 lines
518 B
Go
19 lines
518 B
Go
package maps
|
|
|
|
func _() {
|
|
var aVar int //@item(mapVar, "aVar", "int", "var")
|
|
|
|
// not comparabale
|
|
type aSlice []int //@item(mapSliceType, "aSlice", "[]int", "type")
|
|
|
|
// comparable
|
|
type aStruct struct{} //@item(mapStructType, "aStruct", "struct{...}", "struct")
|
|
|
|
map[]a{} //@complete("]", mapStructType, mapSliceType, mapVar)
|
|
|
|
map[a]a{} //@complete("]", mapStructType, mapSliceType, mapVar)
|
|
map[a]a{} //@complete("{", mapSliceType, mapStructType, mapVar)
|
|
|
|
map[]a{} //@rank("]", int, mapSliceType)
|
|
}
|