golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/completion/constant.txt (about)

     1  This test checks completion related to constants.
     2  
     3  -- flags --
     4  -ignore_extra_diags
     5  
     6  -- constant.go --
     7  package constant
     8  
     9  const x = 1 //@item(constX, "x", "int", "const")
    10  
    11  const (
    12  	a int = iota << 2 //@item(constA, "a", "int", "const")
    13  	b                 //@item(constB, "b", "int", "const")
    14  	c                 //@item(constC, "c", "int", "const")
    15  )
    16  
    17  func _() {
    18  	const y = "hi" //@item(constY, "y", "string", "const")
    19  	//@complete("", constY, constA, constB, constC, constX)
    20  }