func Marshal(v interface{}) ([]byte, error)
func Unmarshal(data []byte, v interface{}) error
Why dont the Marshal & Unmarshal use same amount of arguments, and same amount
of return values like one of these.
//1.
func Marshal(data[]byte, v interface{}) (error)
func Unmarshal(data []byte, v interface{}) error
//2.
func Marshal(v interface{}) ([]byte, error)
func Unmarshal(v interface{}) ([]byte, error)
Sent from my iPad
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.