I added iter.Seq2 support for HSET, HMSET, XADD which have FieldValue() method.
We must support < go 1.23, so we must split file to other files.
It's hard to support auto generation because current implementation does not support code splitting.
So I hand-written the implementation.
When go version in go.mod is go 1.23, I think we can support auto generation by adding flags to *.json and its structs.
Consideration
I named FieldValues, but this is maybe not good to support auto generation in the future because we must consider plural form correctly.
Is FieldValueSeq better?
closes #355
I added iter.Seq2 support for
HSET
,HMSET
,XADD
which haveFieldValue()
method. We must support< go 1.23
, so we must split file to other files. It's hard to support auto generation because current implementation does not support code splitting. So I hand-written the implementation. When go version ingo.mod
isgo 1.23
, I think we can support auto generation by adding flags to*.json
and its structs.Consideration
I named
FieldValues
, but this is maybe not good to support auto generation in the future because we must consider plural form correctly. IsFieldValueSeq
better?