Gustavo Niemeyer 11 rokov pred
rodič
commit
925f818e2c
3 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 5 5
      README.md
  2. 1 1
      decode_test.go
  3. 1 1
      encode_test.go

+ 5 - 5
README.md

@@ -20,23 +20,23 @@ supported since they're a poor design and are gone in YAML 1.2.
 Installation and usage
 ----------------------
 
-The import path for the package is *gopkg.in/yaml.v1*.
+The import path for the package is *gopkg.in/yaml.v2*.
 
 To install it, run:
 
-    go get gopkg.in/yaml.v1
+    go get gopkg.in/yaml.v2
 
 API documentation
 -----------------
 
 If opened in a browser, the import path itself leads to the API documentation:
 
-  * [https://gopkg.in/yaml.v1](https://gopkg.in/yaml.v1)
+  * [https://gopkg.in/yaml.v2](https://gopkg.in/yaml.v2)
 
 API stability
 -------------
 
-The package API for yaml v1 will remain stable as described in [gopkg.in](https://gopkg.in).
+The package API for yaml v2 will remain stable as described in [gopkg.in](https://gopkg.in).
 
 
 License
@@ -55,7 +55,7 @@ import (
         "fmt"
         "log"
 
-        "gopkg.in/yaml.v1"
+        "gopkg.in/yaml.v2"
 )
 
 var data = `

+ 1 - 1
decode_test.go

@@ -3,7 +3,7 @@ package yaml_test
 import (
 	"errors"
 	. "gopkg.in/check.v1"
-	"gopkg.in/yaml.v1"
+	"gopkg.in/yaml.v2"
 	"math"
 	"reflect"
 	"strings"

+ 1 - 1
encode_test.go

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