Skip to content

Commit

Permalink
Merge pull request #14 from lxzan/dev
Browse files Browse the repository at this point in the history
fix package name
  • Loading branch information
lxzan authored Dec 4, 2023
2 parents a62001c + 2532b4f commit 82e4d38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions contrib/pb/codec.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:generate go mod tidy

package pb

import (
Expand All @@ -12,6 +10,8 @@ import (
"io"
)

//go:generate go mod tidy

var (
errDataType = errors.New("v must be proto.Message type")
Encoder = new(encoder)
Expand Down
6 changes: 3 additions & 3 deletions contrib/yaml/codec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//go:generate go mod tidy

package pb
package yaml

import (
"bytes"
Expand All @@ -12,6 +10,8 @@ import (
"io"
)

//go:generate go mod tidy

var Encoder = new(encoder)

type encoder struct{}
Expand Down
7 changes: 1 addition & 6 deletions contrib/yaml/codec_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package pb
package yaml

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

// var text = `
//user:
// name: "caster"
// age: 1
//`
_, err := Encoder.Encode(params)
assert.NoError(t, err)
})
Expand Down

0 comments on commit 82e4d38

Please sign in to comment.