cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Go struct/interface type declarations have no useful scopes

Open josharian opened this issue 2 years ago • 0 comments

For discussion over voice. Some sample code for us to look at together (which I will explain as needed over voice):

package p

type Struct struct {
	X int `json:"x,omitempty" yaml:"x,flow" xml:"x"`
	Y int `non-standard tag`
	a, b string
	T struct {
		a [1]int
	}
	EmbeddedType
	fmt.Stringer
	*EmbeddedPointerType
}

type Interface interface {
	F()
	io.Reader
}

type Constraint interface {
	~int | int64
	io.Writer
}

josharian avatar Aug 14 '23 21:08 josharian