Debian Codegraph @

go/analysis/passes/fieldalignment/testdata/src/a/a_amd64.go.golden

raw
1 package a
2
3 type PointerGood struct {
4 P *int
5 buf [1000]uintptr
6 }
7
8 type PointerBad struct {
9 P *int
10 buf [1000]uintptr
11 }
12
13 type PointerSorta struct {
14 a struct {
15 p *int
16 q uintptr
17 }
18 b struct {
19 p *int
20 q [2]uintptr
21 }
22 }
23
24 type PointerSortaBad struct {
25 b struct {
26 p *int
27 q uintptr
28 }
29 a struct {
30 p *int
31 q [2]uintptr
32 }
33 }
34
35 type MultiField struct {
36 _ [0]func()
37 i1 int
38 i2 int
39 a3 [3]bool
40 b bool
41 }
42
43 type Issue43233 struct {
44 APIVersion string `mapstructure:"api_version"`
45 BaseURL string `mapstructure:"base_url"`
46 AccessToken string `mapstructure:"access_token"`
47 AllowedEvents []*string
48 BlockedEvents []*string
49 }