Go library for transcoding data from KVs supported by libkv to structs
, string
, int
, uint
and float32
and vice versa.
transcoder, err := NewTranscoder(
TranscoderWithKV(kv),
TranscoderWithPrefix("prefix"),
)
if err != nil {
return err
}
tt := &Example{
Description: "bar",
Enabled: true,
}
if err := transcoder.Transcode("foo", &tt) {
return err
}