From fbfa4b8bd7c28bfe5762fc7c1e7bc9d07dc78423 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 5 Apr 2015 17:03:19 -0700 Subject: [PATCH] Drop Go 1.0 from travis.yml, not supported * Go 1.0 net/url ResolveReference behaved differently and did not meet RFC 3986 with regard to '..' collapsing, empty strings, etc. * https://github.com/golang/go/issues/4706 --- .travis.yml | 1 - sling.go | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index dcc37ea..284ac94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: go go: - - 1.0 - 1.1 - 1.2 - 1.3 diff --git a/sling.go b/sling.go index b1c8e3c..940637d 100644 --- a/sling.go +++ b/sling.go @@ -39,12 +39,11 @@ func New() *Sling { // Copy Creation // New returns a copy of the Sling. This is useful for creating a new, -// mutable Sling with properties from a base Sling. +// mutable Sling with properties from a base Sling. For example, // -// For example, -// baseSling := sling.New().Client(client).Base("https://api.io/") -// fooSling := baseSling.New().Get("foo/") -// barSling := baseSling.New().Get("bar/") +// baseSling := sling.New().Client(client).Base("https://api.io/") +// fooSling := baseSling.New().Get("foo/") +// barSling := baseSling.New().Get("bar/") // // fooSling and barSling will send requests to https://api.io/foo/ and // https://api.io/bar/ respectively and baseSling is unmodified.