Skip to content

Go struct/interface type declarations have no useful scopes #1786

Open
@josharian

Description

@josharian

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang-goIssues related to Go programming language support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions