mirror of
https://github.com/golang/go
synced 2024-11-18 23:34:45 -07:00
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)
|
||
|
}
|