mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-22 07:06:25 +00:00
fix doc's bad import
This commit is contained in:
parent
0a52ba39d7
commit
54b39956e3
@ -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
4
doc.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user