const serializationHeader … // WriteTo writes a serialized representation of Profile to w. // // FromSerialized can parse the format back to Profile. // // WriteTo implements io.WriterTo.Write. func (d *Profile) WriteTo(w io.Writer) (int64, error) { … }