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

Add Networks.IsPublic() #8

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

norrland
Copy link
Contributor

@norrland norrland commented Sep 4, 2017

IsPublic() returns true if a Network is public.

Example:

network, err := client.Networks.Details(context.Background(), "vl123456")
if err != nil {
  fmt.Println("Error: ", err)
}
if network.IsPublic() {
  fmt.Println("Network is public")
}

IsPublic() returns true if a Network is public.

Example:
```
network, err := client.Networks.Details(context.Background(), "vl123456")
if err != nil {
  fmt.Println("Error: ", err)
}
if network.IsPublic() {
  fmt.Println("Network is public")
}
```
@wecc wecc merged commit 6279584 into glesys:master Sep 8, 2017
@wecc wecc mentioned this pull request Sep 8, 2017
3 tasks
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.

None yet

2 participants