mirror of
https://github.com/golang/go
synced 2024-11-19 06:54:39 -07:00
20 lines
540 B
Go
20 lines
540 B
Go
|
package rank
|
||
|
|
||
|
var (
|
||
|
apple int = 3 //@item(apple, "apple", "int", "var")
|
||
|
pear string = "hello" //@item(pear, "pear", "string", "var")
|
||
|
)
|
||
|
|
||
|
func _() {
|
||
|
orange := 1 //@item(orange, "orange", "int", "var")
|
||
|
grape := "hello" //@item(grape, "grape", "string", "var")
|
||
|
orange, grape = 2, "hello" //@complete(" \"", grape, pear, orange, apple)
|
||
|
}
|
||
|
|
||
|
func _() {
|
||
|
var pineapple int //@item(pineapple, "pineapple", "int", "var")
|
||
|
pineapple = //@complete(" /", pineapple, apple, pear)
|
||
|
|
||
|
y := //@complete(" /", pineapple, apple, pear)
|
||
|
}
|