repositorypackage
0.1.8
Repository: https://github.com/andersnormal/kvstructure.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
kvstructure
Go library for transcoding data from KVs supported by libkv to structs
, string
, int
, uint
and float32
and vice versa.
Example
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
}