Categorygithub.com/andersnormal/kvstructure
repositorypackage
0.1.8
Repository: https://github.com/andersnormal/kvstructure.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

kvstructure

GoDoc Build Status Taylor Swift Volkswagen Go Report Card

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
}

License

Apache 2.0