Skip to content

recommend Packer interface to improve scalability and flexibility #62

Open
@uhowep

Description

@uhowep

It is recommended to adjust the Packer interface to improve scalability and flexibility:
for Message in Packer , use interface{} type instead of []byte for data field.

In different business scenarios, if you want to use some specific libraries for use such as pdu for smpp, the structure used by a specific library cannot be adjusted to []byte, unless an additional Marshal and Unmarshal. When using interface{} to replace []byte, it can save a time consumption of Marshal and Unmarshal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions