Support "AddFlat" feature for struct #1748
momotaro98
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When we have the followings
redigo supports converting
redis
tag fields of a struct to binary like below.This above works.
The code below is go-redis case.
I know the
err
saysredis: can't marshal *main.Post (implement encoding.BinaryMarshaler)
so I should implement encoding.BinaryMarshaler forPost
struct but I believe it's good if go-redis also supports the AddFlat feature even though it can be a bit more complex than current one as well as redigo.Beta Was this translation helpful? Give feedback.
All reactions