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

     1  This test checks completion related to errors.
     2  
     3  -- flags --
     4  -ignore_extra_diags
     5  
     6  -- settings.json --
     7  {
     8  	"deepCompletion": false
     9  }
    10  
    11  -- go.mod --
    12  module golang.org/lsptests
    13  
    14  go 1.18
    15  
    16  -- errors.go --
    17  package errors
    18  
    19  import (
    20  	"golang.org/lsptests/types"
    21  )
    22  
    23  func _() {
    24  	bob.Bob() //@complete(".")
    25  	types.b //@complete(" //", Bob_interface)
    26  }
    27  
    28  -- types/types.go --
    29  package types
    30  
    31  type Bob interface { //@item(Bob_interface, "Bob", "interface{...}", "interface")
    32  	Bobby()
    33  }