Skip to content

euforia/consulutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consulutils

Library to unmarshal consul key value pairs into structs.

import "github.com/euforia/consulutils"

type SomeStruct struct {
    Host    string `consul:"foo/bar/datasource/host"`
    Port    int64  `consul:"foo/bar/datasource/port"`
    Enabled bool   `consul:"foo/bar/enabled"`
}

pairs, _, err := kv.List("foo")

var s SomeStruct
err = consulutils.Unmarshal(pairs, &s)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages