aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-20 23:35:03 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-20 23:35:03 +0100
commit416bf202ae4a7bc54cdf54ffa62bb1e5e7bb07cb (patch)
tree4246a64f4a8251876ab7dac66864e84809d5937d
parent6839b39f54ca27fec1acdebbc8f1c36a715a8ae9 (diff)
No need for extra type
-rw-r--r--client.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/client.go b/client.go
index 12812dd..8a88728 100644
--- a/client.go
+++ b/client.go
@@ -12,13 +12,10 @@ import (
"time"
)
-// Link to the next stage
-type Link map[string]string
-
// Client ...
type Client struct {
Dir Directory
- Link Link
+ Link map[string]string
Location string
nonce chan string
RetryAfter time.Duration
@@ -119,7 +116,7 @@ func (c *Client) parseHeader(r *http.Response) {
c.Location = r.Header.Get("Location")
- c.Link = make(Link)
+ c.Link = make(map[string]string)
for _, l := range r.Header["Link"] {
re := linksRe.FindStringSubmatch(l)
if len(re) == 3 {