Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MP_EXT] Extension encoder and decoder functions are not exportable #420

Open
rybakit opened this issue Dec 16, 2024 · 0 comments
Open

[MP_EXT] Extension encoder and decoder functions are not exportable #420

rybakit opened this issue Dec 16, 2024 · 0 comments

Comments

@rybakit
Copy link

rybakit commented Dec 16, 2024

Consider making the current MessagePack extension encoder and decoder functions exportable. I’m personally interested in the decimal extension, where I would like to register my own extension but still be able to reuse the encoding logic from the tarantool/decimal package. The easiest way is to simply make the decimalEncoder() and decimalDecoder() functions start with a capital letter. Another option is to make them adhere to the MarshalerUnmarshaler interface from vmihailenco/msgpack/v5 and rename them to MarshalMsgpack() and UnmarshalMsgpack(), respectively.

@rybakit rybakit changed the title [MP_EXT] Extension encoders and decoders are not exportable [MP_EXT] Extension encoder and decoder functions are not exportable Dec 16, 2024
rybakit added a commit to rybakit/go-tarantool that referenced this issue Dec 16, 2024
rybakit added a commit to rybakit/go-tarantool that referenced this issue Dec 16, 2024
rybakit added a commit to rybakit/go-tarantool that referenced this issue Dec 16, 2024
rybakit added a commit to rybakit/go-tarantool that referenced this issue Dec 16, 2024
rybakit added a commit to rybakit/go-tarantool that referenced this issue Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant