fix doc's bad import

This commit is contained in:
Adphi 2018-10-26 17:23:16 +02:00
parent 0a52ba39d7
commit 54b39956e3
2 changed files with 4 additions and 4 deletions

View File

@ -25,14 +25,14 @@ package main
import ( import (
"fmt" "fmt"
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client" "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
) )
func main() { func main() {
url := "https://www.mynextcloud.com" url := "https://www.mynextcloud.com"
username := "admin" username := "admin"
password := "password" password := "password"
c, err := client.NewClient(url) c, err := gonextcloud.NewClient(url)
if err != nil { if err != nil {
panic(err) panic(err)
} }

4
doc.go
View File

@ -14,14 +14,14 @@ For example, to list all the Nextcloud's instance users:
import ( import (
"fmt" "fmt"
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client" "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
) )
func main() { func main() {
url := "https://www.mynextcloud.com" url := "https://www.mynextcloud.com"
username := "admin" username := "admin"
password := "password" password := "password"
c, err := client.NewClient(url) c, err := gonextcloud.NewClient(url)
if err != nil { if err != nil {
panic(err) panic(err)
} }