I was wondering why func Unpack() (*Pigo, error) needs to be a method of the struct Pigo if that struct is never used inside the method. I think making Unpack() a method of the package, instead of the struct, would have less overhead when initializing the classifier.
I was wondering why
func Unpack() (*Pigo, error)
needs to be a method of the structPigo
if that struct is never used inside the method. I think makingUnpack()
a method of the package, instead of the struct, would have less overhead when initializing the classifier.What do you think?