All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
It is idiomatic for the type definition to be before the method declarations.
func (d data) method() {} type data struct{}
type data struct{} func (d data) method() {}