Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init KV from .json file #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rajatm99
Copy link
Owner

No description provided.

@thepedmu
Copy link

Add README


func main() {
fmt.Println("Hello World!")
x := gonsul.Gonsul{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x => consul
any other variable name also works

Path: "gonsul",
File: "./example.json",
HttpClient: http.Client{
Timeout: time.Second * 30,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or as param?

},
}
err := x.InitFromFile()
fmt.Println(err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err check

@thepedmu
Copy link

Considering we use this package in another project, how would be initialise consul, can you make a Initfunction thats public

@padmaraj-durian
Copy link

Considering we use this package in another project, how would be initialise consul, can you make a Initfunction thats public

ignore above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants