mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
27 lines
534 B
Go
27 lines
534 B
Go
|
package complit
|
||
|
|
||
|
type position struct { //@item(structPosition, "position", "struct{...}", "struct")
|
||
|
X, Y int //@item(fieldX, "X", "int", "field"),item(fieldY, "Y", "int", "field")
|
||
|
}
|
||
|
|
||
|
func _() {
|
||
|
_ := position{
|
||
|
//@complete("", fieldX, fieldY, structPosition)
|
||
|
}
|
||
|
_ := position{
|
||
|
X: 1,
|
||
|
//@complete("", fieldY)
|
||
|
}
|
||
|
_ := position{
|
||
|
//@complete("", fieldX)
|
||
|
Y: 1,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func _() {
|
||
|
_ := position{
|
||
|
X: 1, //@complete("X", fieldX),complete(" 1", structPosition)
|
||
|
Y: , //@complete(":", fieldY),complete(" ,", structPosition)
|
||
|
}
|
||
|
}
|