зеркало из https://github.com/go-gitea/yaml.git
v1 => v2
This commit is contained in:
Родитель
c544d03421
Коммит
925f818e2c
10
README.md
10
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 = `
|
||||
|
|
|
@ -3,7 +3,7 @@ package yaml_test
|
|||
import (
|
||||
"errors"
|
||||
. "gopkg.in/check.v1"
|
||||
"gopkg.in/yaml.v1"
|
||||
"gopkg.in/yaml.v2"
|
||||
"math"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
|
|
@ -3,7 +3,7 @@ package yaml_test
|
|||
import (
|
||||
"fmt"
|
||||
. "gopkg.in/check.v1"
|
||||
"gopkg.in/yaml.v1"
|
||||
"gopkg.in/yaml.v2"
|
||||
"math"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
Загрузка…
Ссылка в новой задаче