amf serialization for go