use golang binary encoder