From 410ae274cd8b375b1b555d37bcca6999eccd678f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 10 Dec 2015 23:06:05 +0100 Subject: Store next --- client.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client.go') diff --git a/client.go b/client.go index e381c5f..238c340 100644 --- a/client.go +++ b/client.go @@ -19,6 +19,7 @@ type Client struct { Dir Directory nonce chan string Links Links + Next string } // NewClient fetches directory and initializes nonce @@ -145,6 +146,7 @@ func (c *Client) Register(a *Account) error { defer aresp.Body.Close() err = json.NewDecoder(aresp.Body).Decode(&re) log.Println(re) + c.Next = c.Links["next"] return err } -- cgit v1.2.3