Closed
Description
having []byte
XXX_ fields in generated code prevents those structs to be able to be compared by value.
package main
import (
"fmt"
)
type Hash struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func main() {
fmt.Println(Hash{} == Hash{})
}
This breaks an existent code.
Another argument to the issue #276
Even if the []byte
field will be removed, those third-party states being embed into the structs makes it pointless.
Metadata
Metadata
Assignees
Labels
No labels