Skip to content

Commit 82e4d38

Browse files
authored
Merge pull request #14 from lxzan/dev
fix package name
2 parents a62001c + 2532b4f commit 82e4d38

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

contrib/pb/codec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:generate go mod tidy
2-
31
package pb
42

53
import (
@@ -12,6 +10,8 @@ import (
1210
"io"
1311
)
1412

13+
//go:generate go mod tidy
14+
1515
var (
1616
errDataType = errors.New("v must be proto.Message type")
1717
Encoder = new(encoder)

contrib/yaml/codec.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//go:generate go mod tidy
2-
3-
package pb
1+
package yaml
42

53
import (
64
"bytes"
@@ -12,6 +10,8 @@ import (
1210
"io"
1311
)
1412

13+
//go:generate go mod tidy
14+
1515
var Encoder = new(encoder)
1616

1717
type encoder struct{}

contrib/yaml/codec_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pb
1+
package yaml
22

33
import (
44
"github.com/lxzan/hasaki"
@@ -18,11 +18,6 @@ func TestEncoder_Encode(t *testing.T) {
1818
Age int
1919
}{Name: "aha"}
2020

21-
// var text = `
22-
//user:
23-
// name: "caster"
24-
// age: 1
25-
//`
2621
_, err := Encoder.Encode(params)
2722
assert.NoError(t, err)
2823
})

0 commit comments

Comments
 (0)