get a services from consul
get a first service from consul
register a service with local agent
de-register a service with local agent
get KVPair
watch create/update KVPair
get string value
get int value
put KVPair
Load key/value to structure, basic usage:
var s struct {
Name string `consul:"default:Rob Pike"` // set default value if not exists key
Size int `consul:"default:100"`
Url string `consul:"name:u;default:http://localhost"` // different key name is "n"
Other struct { // nested keys
Name1 string `consul:"default:no"`
}
}