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

api does not export Config #2

Open
sylnsr opened this issue Feb 15, 2019 · 1 comment
Open

api does not export Config #2

sylnsr opened this issue Feb 15, 2019 · 1 comment

Comments

@sylnsr
Copy link

sylnsr commented Feb 15, 2019

This might be out of date sample code:

import (
	"fmt"

	"github.com/llonchj/godoo/api"
)

func main() {
	config := &api.Config{
		DbName:   "test",
		Admin:    "admin",
		Password: "password",
		URI:      "http://localhost:8069",
	}

because the Config type is not defined anywhere in the api package.

@sylnsr
Copy link
Author

sylnsr commented Feb 15, 2019

Looks like it should be using

//NewClient creates a new ODOO Client
func NewClient(URL string, Transport http.RoundTripper) (*Client, error) { 
...

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

No branches or pull requests

1 participant