Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 570 Bytes

File metadata and controls

22 lines (15 loc) · 570 Bytes

Tiny consul wrapper

This wrapper works with structures and allows to unmarshal consul configuration right into your structure.

If key is not in consul, wrappers adds it and sets default value from structures field tags.

Install

To get the package, execute:

go get gopkg.in/devimteam/consul.v3

To import this package, add the following line to your code:

import "gopkg.in/devimteam/consul.v3"

Environment variables

GROUP_NAME

used for setting up global folder for keys. All keys will be accessed by path like GROUP_NAME/key