File tree 8 files changed +33
-32
lines changed
8 files changed +33
-32
lines changed Original file line number Diff line number Diff line change 28
28
- name : Check out code into the Go module directory
29
29
uses : actions/checkout@v2
30
30
with :
31
- path : ${{ github.workspace }}/go/src/gopkg.in/ yaml.v3
31
+ path : ${{ github.workspace }}/go/src/github.com/zillow/go- yaml.v3
32
32
- name : Set up Go ${{ matrix.go }}
33
33
if : matrix.go != 'tip'
34
34
uses : actions/setup-go@v2
56
56
echo "$GOROOT/bin" >> $GITHUB_PATH
57
57
- run : go version
58
58
- run : go get -t ./...
59
- working-directory : ${{ github.workspace }}/go/src/gopkg.in/ yaml.v3
59
+ working-directory : ${{ github.workspace }}/go/src/github.com/zillow/go- yaml.v3
60
60
- run : go test .
61
- working-directory : ${{ github.workspace }}/go/src/gopkg.in/ yaml.v3
61
+ working-directory : ${{ github.workspace }}/go/src/github.com/zillow/go- yaml.v3
Original file line number Diff line number Diff line change @@ -36,18 +36,18 @@ supported since they're a poor design and are gone in YAML 1.2.
36
36
Installation and usage
37
37
----------------------
38
38
39
- The import path for the package is * gopkg.in/ yaml.v3* .
39
+ The import path for the package is * github.com/zillow/go- yaml.v3* .
40
40
41
41
To install it, run:
42
42
43
- go get gopkg.in/ yaml.v3
43
+ go get github.com/zillow/go- yaml.v3
44
44
45
45
API documentation
46
46
-----------------
47
47
48
48
If opened in a browser, the import path itself leads to the API documentation:
49
49
50
- - [ https://gopkg.in/ yaml.v3 ] ( https://gopkg.in/ yaml.v3 )
50
+ - [ https://github.com/zillow/go- yaml.v3 ] ( https://github.com/zillow/go- yaml.v3 )
51
51
52
52
API stability
53
53
-------------
@@ -72,7 +72,7 @@ import (
72
72
" fmt"
73
73
" log"
74
74
75
- " gopkg.in/ yaml.v3"
75
+ " github.com/zillow/go- yaml.v3"
76
76
)
77
77
78
78
var data = `
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ import (
25
25
"strings"
26
26
"time"
27
27
28
+ "github.com/zillow/go-yaml.v3"
28
29
. "gopkg.in/check.v1"
29
- "gopkg.in/yaml.v3"
30
30
)
31
31
32
32
var unmarshalIntTest = 123
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import (
26
26
"net"
27
27
"os"
28
28
29
+ "github.com/zillow/go-yaml.v3"
29
30
. "gopkg.in/check.v1"
30
- "gopkg.in/yaml.v3"
31
31
)
32
32
33
33
type jsonNumberT string
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"fmt"
20
20
"log"
21
21
22
- "gopkg.in/ yaml.v3"
22
+ "github.com/zillow/go- yaml.v3"
23
23
)
24
24
25
25
// An example showing how to unmarshal embedded
Original file line number Diff line number Diff line change 1
- module " gopkg.in/ yaml.v3"
1
+ module " github.com/zillow/go- yaml.v3"
2
2
3
3
require (
4
4
" gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405
Original file line number Diff line number Diff line change 4
4
"strings"
5
5
"testing"
6
6
7
+ "github.com/zillow/go-yaml.v3"
7
8
. "gopkg.in/check.v1"
8
- "gopkg.in/yaml.v3"
9
9
)
10
10
11
11
var limitTests = []struct {
Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ import (
20
20
"fmt"
21
21
"os"
22
22
23
- . "gopkg.in/check.v1"
24
- "gopkg.in/yaml.v3"
25
23
"io"
26
24
"strings"
25
+
26
+ "github.com/zillow/go-yaml.v3"
27
+ . "gopkg.in/check.v1"
27
28
)
28
29
29
30
var nodeTests = []struct {
@@ -688,17 +689,17 @@ var nodeTests = []struct {
688
689
Line : 3 ,
689
690
Column : 4 ,
690
691
}, {
691
- Kind : yaml .ScalarNode ,
692
- Tag : "!!str" ,
693
- Value : "c" ,
692
+ Kind : yaml .ScalarNode ,
693
+ Tag : "!!str" ,
694
+ Value : "c" ,
694
695
LineComment : "# IC" ,
695
- Line : 5 ,
696
- Column : 1 ,
696
+ Line : 5 ,
697
+ Column : 1 ,
697
698
}, {
698
- Kind : yaml .SequenceNode ,
699
- Tag : "!!seq" ,
700
- Line : 6 ,
701
- Column : 3 ,
699
+ Kind : yaml .SequenceNode ,
700
+ Tag : "!!seq" ,
701
+ Line : 6 ,
702
+ Column : 3 ,
702
703
Content : []* yaml.Node {{
703
704
Kind : yaml .ScalarNode ,
704
705
Tag : "!!str" ,
@@ -707,17 +708,17 @@ var nodeTests = []struct {
707
708
Column : 5 ,
708
709
}},
709
710
}, {
710
- Kind : yaml .ScalarNode ,
711
- Tag : "!!str" ,
712
- Value : "d" ,
711
+ Kind : yaml .ScalarNode ,
712
+ Tag : "!!str" ,
713
+ Value : "d" ,
713
714
LineComment : "# ID" ,
714
- Line : 7 ,
715
- Column : 1 ,
715
+ Line : 7 ,
716
+ Column : 1 ,
716
717
}, {
717
- Kind : yaml .MappingNode ,
718
- Tag : "!!map" ,
719
- Line : 8 ,
720
- Column : 3 ,
718
+ Kind : yaml .MappingNode ,
719
+ Tag : "!!map" ,
720
+ Line : 8 ,
721
+ Column : 3 ,
721
722
Content : []* yaml.Node {{
722
723
Kind : yaml .ScalarNode ,
723
724
Tag : "!!str" ,
You can’t perform that action at this time.
0 commit comments