Ver Fonte

New gopkg.in versioning pattern.

Gustavo Niemeyer há 12 anos atrás
pai
commit
3d8cfc3754
3 ficheiros alterados com 6 adições e 6 exclusões
  1. 4 4
      README.md
  2. 1 1
      decode_test.go
  3. 1 1
      encode_test.go

+ 4 - 4
README.md

@@ -20,18 +20,18 @@ features are not hard to add, and will be introduced as necessary.
 Installation and usage
 ----------------------
 
-The import path for the package is *gopkg.in/v1/yaml*.
+The import path for the package is *gopkg.in/yaml.v1*.
 
 To install it, run:
 
-    go get gopkg.in/v1/yaml
+    go get gopkg.in/yaml.v1
 
 API documentation
 -----------------
 
 If opened in a browser, the import path itself leads to the API documentation:
 
-  * [https://gopkg.in/v1/yaml](https://gopkg.in/v1/yaml)
+  * [https://gopkg.in/yaml.v1](https://gopkg.in/yaml.v1)
 
 API stability
 -------------
@@ -55,7 +55,7 @@ import (
         "fmt"
         "log"
 
-        "gopkg.in/v1/yaml"
+        "gopkg.in/yaml.v1"
 )
 
 var data = `

+ 1 - 1
decode_test.go

@@ -2,7 +2,7 @@ package yaml_test
 
 import (
 	. "launchpad.net/gocheck"
-	"gopkg.in/v1/yaml"
+	"gopkg.in/yaml.v1"
 	"math"
 	"reflect"
 )

+ 1 - 1
encode_test.go

@@ -3,7 +3,7 @@ package yaml_test
 import (
 	"fmt"
 	. "launchpad.net/gocheck"
-	"gopkg.in/v1/yaml"
+	"gopkg.in/yaml.v1"
 	"math"
 	"strconv"
 	"strings"