Closed
Description
Hello,
I encountered an issue with the following code:
type Template struct {
BirthDate carbon.Carbon `redis:"birth_date" carbon:"type:date"` // 出生日期
}
*redis.Client.HSet(ctx, key, Template{}).Result()
golang version: 1.23
carbon version: v2.5.2
redis: v9.7.0
github.com/redis/go-redis/v9
redis: can't marshal carbon.Carbon (implement encoding.BinaryMarshaler)
Thanks!