-- AB-hoverdef --
```go
func (a.I).B()
```

[`(a.I).B` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#I.B)

\@mark\(AB, \"B\"\)
-- AField-hoverdef --
```go
field Field int
```

[`(a.S).Field` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#S.Field)

\@mark\(AField, \"Field\"\)
-- AField2-hoverdef --
```go
field Field2 int
```

[`(a.R).Field2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#R.Field2)

\@mark\(AField2, \"Field2\"\)
-- AGoodbye-hoverdef --
```go
func (a.H).Goodbye()
```

[`(a.H).Goodbye` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#H.Goodbye)

\@mark\(AGoodbye, \"Goodbye\"\)
-- AHello-hoverdef --
```go
func (a.J).Hello()
```

[`(a.J).Hello` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#J.Hello)

\@mark\(AHello, \"Hello\"\)
-- AHey-hoverdef --
```go
func (a.R).Hey()
```

[`(a.R).Hey` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#R.Hey)
-- AHi-hoverdef --
```go
func (a.A).Hi()
```

[`(a.A).Hi` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#A.Hi)
-- AImport-definition --
godef/b/b.go:5:2-43: defined here as ```go
package a ("golang.org/x/tools/internal/lsp/godef/a")
```

[`a` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls)
-- AImport-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 5,
			"column": 2,
			"offset": 112
		},
		"end": {
			"line": 5,
			"column": 43,
			"offset": 153
		}
	},
	"description": "```go\npackage a (\"golang.org/x/tools/internal/lsp/godef/a\")\n```\n\n[`a` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls)"
}

-- AImport-hoverdef --
```go
package a ("golang.org/x/tools/internal/lsp/godef/a")
```

[`a` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls)
-- AString-definition --
godef/a/a.go:26:6-7: defined here as ```go
type A string
```

[`a.A` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#A)

\@mark\(AString, \"A\"\)
-- AString-definition-json --
{
	"span": {
		"uri": "file://godef/a/a.go",
		"start": {
			"line": 26,
			"column": 6,
			"offset": 467
		},
		"end": {
			"line": 26,
			"column": 7,
			"offset": 468
		}
	},
	"description": "```go\ntype A string\n```\n\n[`a.A` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#A)\n\n\\@mark\\(AString, \\\"A\\\"\\)"
}

-- AString-hoverdef --
```go
type A string
```

[`a.A` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#A)

\@mark\(AString, \"A\"\)
-- AStuff-definition --
godef/a/a.go:28:6-12: defined here as ```go
func a.AStuff()
```

[`a.AStuff` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#AStuff)
-- AStuff-definition-json --
{
	"span": {
		"uri": "file://godef/a/a.go",
		"start": {
			"line": 28,
			"column": 6,
			"offset": 504
		},
		"end": {
			"line": 28,
			"column": 12,
			"offset": 510
		}
	},
	"description": "```go\nfunc a.AStuff()\n```\n\n[`a.AStuff` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#AStuff)"
}

-- AStuff-hoverdef --
```go
func a.AStuff()
```

[`a.AStuff` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/a?utm_source=gopls#AStuff)
-- S1-definition --
godef/b/b.go:27:6-8: defined here as ```go
type S1 struct {
	F1     int //@mark(S1F1, "F1")
	S2         //@godef("S2", S2),mark(S1S2, "S2")
	a.A        //@godef("A", AString)
	aAlias     //@godef("a", aAlias)
}
```

[`b.S1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1)
-- S1-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 27,
			"column": 6,
			"offset": 587
		},
		"end": {
			"line": 27,
			"column": 8,
			"offset": 589
		}
	},
	"description": "```go\ntype S1 struct {\n\tF1     int //@mark(S1F1, \"F1\")\n\tS2         //@godef(\"S2\", S2),mark(S1S2, \"S2\")\n\ta.A        //@godef(\"A\", AString)\n\taAlias     //@godef(\"a\", aAlias)\n}\n```\n\n[`b.S1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1)"
}

-- S1-hoverdef --
```go
type S1 struct {
	F1     int //@mark(S1F1, "F1")
	S2         //@godef("S2", S2),mark(S1S2, "S2")
	a.A        //@godef("A", AString)
	aAlias     //@godef("a", aAlias)
}
```

[`b.S1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1)
-- S1F1-definition --
godef/b/b.go:28:2-4: defined here as ```go
field F1 int
```

[`(b.S1).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.F1)

\@mark\(S1F1, \"F1\"\)
-- S1F1-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 28,
			"column": 2,
			"offset": 606
		},
		"end": {
			"line": 28,
			"column": 4,
			"offset": 608
		}
	},
	"description": "```go\nfield F1 int\n```\n\n[`(b.S1).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.F1)\n\n\\@mark\\(S1F1, \\\"F1\\\"\\)"
}

-- S1F1-hoverdef --
```go
field F1 int
```

[`(b.S1).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.F1)

\@mark\(S1F1, \"F1\"\)
-- S1S2-definition --
godef/b/b.go:29:2-4: defined here as ```go
field S2 S2
```

[`(b.S1).S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.S2)

\@godef\(\"S2\", S2\),mark\(S1S2, \"S2\"\)
-- S1S2-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 29,
			"column": 2,
			"offset": 638
		},
		"end": {
			"line": 29,
			"column": 4,
			"offset": 640
		}
	},
	"description": "```go\nfield S2 S2\n```\n\n[`(b.S1).S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.S2)\n\n\\@godef\\(\\\"S2\\\", S2\\),mark\\(S1S2, \\\"S2\\\"\\)"
}

-- S1S2-hoverdef --
```go
field S2 S2
```

[`(b.S1).S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S1.S2)

\@godef\(\"S2\", S2\),mark\(S1S2, \"S2\"\)
-- S2-definition --
godef/b/b.go:34:6-8: defined here as ```go
type S2 struct {
	F1   string //@mark(S2F1, "F1")
	F2   int    //@mark(S2F2, "F2")
	*a.A        //@godef("A", AString),godef("a",AImport)
}
```

[`b.S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2)
-- S2-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 34,
			"column": 6,
			"offset": 762
		},
		"end": {
			"line": 34,
			"column": 8,
			"offset": 764
		}
	},
	"description": "```go\ntype S2 struct {\n\tF1   string //@mark(S2F1, \"F1\")\n\tF2   int    //@mark(S2F2, \"F2\")\n\t*a.A        //@godef(\"A\", AString),godef(\"a\",AImport)\n}\n```\n\n[`b.S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2)"
}

-- S2-hoverdef --
```go
type S2 struct {
	F1   string //@mark(S2F1, "F1")
	F2   int    //@mark(S2F2, "F2")
	*a.A        //@godef("A", AString),godef("a",AImport)
}
```

[`b.S2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2)
-- S2F1-definition --
godef/b/b.go:35:2-4: defined here as ```go
field F1 string
```

[`(b.S2).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F1)

\@mark\(S2F1, \"F1\"\)
-- S2F1-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 35,
			"column": 2,
			"offset": 781
		},
		"end": {
			"line": 35,
			"column": 4,
			"offset": 783
		}
	},
	"description": "```go\nfield F1 string\n```\n\n[`(b.S2).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F1)\n\n\\@mark\\(S2F1, \\\"F1\\\"\\)"
}

-- S2F1-hoverdef --
```go
field F1 string
```

[`(b.S2).F1` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F1)

\@mark\(S2F1, \"F1\"\)
-- S2F2-definition --
godef/b/b.go:36:2-4: defined here as ```go
field F2 int
```

[`(b.S2).F2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F2)

\@mark\(S2F2, \"F2\"\)
-- S2F2-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 36,
			"column": 2,
			"offset": 814
		},
		"end": {
			"line": 36,
			"column": 4,
			"offset": 816
		}
	},
	"description": "```go\nfield F2 int\n```\n\n[`(b.S2).F2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F2)\n\n\\@mark\\(S2F2, \\\"F2\\\"\\)"
}

-- S2F2-hoverdef --
```go
field F2 int
```

[`(b.S2).F2` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#S2.F2)

\@mark\(S2F2, \"F2\"\)
-- aAlias-definition --
godef/b/b.go:25:6-12: defined here as ```go
type aAlias = a.A
```

\@mark\(aAlias, \"aAlias\"\)
-- aAlias-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 25,
			"column": 6,
			"offset": 542
		},
		"end": {
			"line": 25,
			"column": 12,
			"offset": 548
		}
	},
	"description": "```go\ntype aAlias = a.A\n```\n\n\\@mark\\(aAlias, \\\"aAlias\\\"\\)"
}

-- aAlias-hoverdef --
```go
type aAlias = a.A
```

\@mark\(aAlias, \"aAlias\"\)
-- bX-definition --
godef/b/b.go:57:7-8: defined here as ```go
const X untyped int = 0
```

[`b.X` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#X)

\@mark\(bX, \"X\"\),godef\(\"X\", bX\)
-- bX-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 57,
			"column": 7,
			"offset": 1249
		},
		"end": {
			"line": 57,
			"column": 8,
			"offset": 1250
		}
	},
	"description": "```go\nconst X untyped int = 0\n```\n\n[`b.X` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#X)\n\n\\@mark\\(bX, \\\"X\\\"\\),godef\\(\\\"X\\\", bX\\)"
}

-- bX-hoverdef --
```go
const X untyped int = 0
```

[`b.X` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/godef/b?utm_source=gopls#X)

\@mark\(bX, \"X\"\),godef\(\"X\", bX\)
-- myFoo-definition --
godef/b/b.go:4:2-7: defined here as ```go
package myFoo ("golang.org/x/tools/internal/lsp/foo")
```

[`myFoo` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/foo?utm_source=gopls)
-- myFoo-definition-json --
{
	"span": {
		"uri": "file://godef/b/b.go",
		"start": {
			"line": 4,
			"column": 2,
			"offset": 21
		},
		"end": {
			"line": 4,
			"column": 7,
			"offset": 26
		}
	},
	"description": "```go\npackage myFoo (\"golang.org/x/tools/internal/lsp/foo\")\n```\n\n[`myFoo` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/foo?utm_source=gopls)"
}

-- myFoo-hoverdef --
```go
package myFoo ("golang.org/x/tools/internal/lsp/foo")
```

[`myFoo` on pkg.go.dev](https://pkg.go.dev/golang.org/x/tools/internal/lsp/foo?utm_source=gopls)
