Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

fieldalignment: struct with 48 pointer bytes could be 40 (govet) where am I wrong with this simple struct? #3

Closed
frederikhors opened this issue Oct 31, 2021 · 1 comment

Comments

@frederikhors
Copy link

frederikhors commented Oct 31, 2021

If I use this struct I cannot remove the below warning, why?

type OrderBy struct {
	Field string
	Desc  bool
}

type Pagination struct {
	OrderBy []OrderBy
	After   string
	Before  string
	First   uint32
	Last    uint32
}
fieldalignment: struct with 48 pointer bytes could be 40 (govet)
@Dominik-K
Copy link

@frederikhors See the good explanation and ongoing effort in atc0005/go-ci#302

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants