From 16ca38c4e468c53f56085d7671a34e6fca9a9ebf Mon Sep 17 00:00:00 2001 From: Adphi Date: Fri, 26 Oct 2018 09:40:11 +0200 Subject: [PATCH] Fix indent in README.md --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 838db5e..4b7f050 100644 --- a/README.md +++ b/README.md @@ -21,32 +21,32 @@ You use the library by creating a client object and calling methods on it. For example, to list all the Nextcloud's instance users: ```go - package main +package main - import ( - "fmt" - "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client" - ) +import ( + "fmt" + "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client" +) - func main() { - url := "https://www.mynextcloud.com" - username := "admin" - password := "password" - c, err := client.NewClient(url) - if err != nil { - panic(err) - } - if err := c.Login(username, password); err != nil { - panic(err) - } - defer c.Logout() - - users, err := c.Users.List() - if err != nil { - panic(err) - } - fmt.Println("Users :", users) +func main() { + url := "https://www.mynextcloud.com" + username := "admin" + password := "password" + c, err := client.NewClient(url) + if err != nil { + panic(err) } + if err := c.Login(username, password); err != nil { + panic(err) + } + defer c.Logout() + + users, err := c.Users.List() + if err != nil { + panic(err) + } + fmt.Println("Users :", users) +} ``` ## Run tests