.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / go / analysis / passes / fieldalignment / testdata / src / a / a_amd64.go.golden
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/go/analysis/passes/fieldalignment/testdata/src/a/a_amd64.go.golden b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.1.0/go/analysis/passes/fieldalignment/testdata/src/a/a_amd64.go.golden
new file mode 100644 (file)
index 0000000..c3aa6ba
--- /dev/null
@@ -0,0 +1,49 @@
+package a
+
+type PointerGood struct {
+       P   *int
+       buf [1000]uintptr
+}
+
+type PointerBad struct {
+       P   *int
+       buf [1000]uintptr
+}
+
+type PointerSorta struct {
+       a struct {
+               p *int
+               q uintptr
+       }
+       b struct {
+               p *int
+               q [2]uintptr
+       }
+}
+
+type PointerSortaBad struct {
+       b struct {
+               p *int
+               q uintptr
+       }
+       a struct {
+               p *int
+               q [2]uintptr
+       }
+}
+
+type MultiField struct {
+       _  [0]func()
+       i1 int
+       i2 int
+       a3 [3]bool
+       b  bool
+}
+
+type Issue43233 struct {
+       APIVersion    string `mapstructure:"api_version"`
+       BaseURL       string `mapstructure:"base_url"`
+       AccessToken   string `mapstructure:"access_token"`
+       AllowedEvents []*string
+       BlockedEvents []*string
+}