зеркало из https://github.com/go-gitea/yaml.git
New gopkg.in versioning pattern.
This commit is contained in:
Родитель
dbd6d0229d
Коммит
3d8cfc3754
|
@ -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 = `
|
||||
|
|
|
@ -2,7 +2,7 @@ package yaml_test
|
|||
|
||||
import (
|
||||
. "launchpad.net/gocheck"
|
||||
"gopkg.in/v1/yaml"
|
||||
"gopkg.in/yaml.v1"
|
||||
"math"
|
||||
"reflect"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package yaml_test
|
|||
import (
|
||||
"fmt"
|
||||
. "launchpad.net/gocheck"
|
||||
"gopkg.in/v1/yaml"
|
||||
"gopkg.in/yaml.v1"
|
||||
"math"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
Загрузка…
Ссылка в новой задаче