Skip to content

Commit

Permalink
refactor(tag): upgrade y3 to modify the tag declaration of a structure (
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjunbiao authored Feb 23, 2021
1 parent 59e5540 commit db7753b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/flow/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const NoiseDataKey = 0x10

// NoiseData represents the structure of data
type NoiseData struct {
Noise float32 `yomo:"0x11"`
Time int64 `yomo:"0x12"`
From string `yomo:"0x13"`
Noise float32 `y3:"0x11"`
Time int64 `y3:"0x12"`
From string `y3:"0x13"`
}

var printer = func(_ context.Context, i interface{}) (interface{}, error) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/lucas-clemente/quic-go v0.19.3
github.com/reactivex/rxgo/v2 v2.4.0
github.com/spf13/cobra v1.1.3
github.com/yomorun/y3-codec-golang v1.6.3
github.com/yomorun/y3-codec-golang v1.6.4
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f // indirect
gopkg.in/yaml.v2 v2.4.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMI
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/yomorun/y3-codec-golang v1.6.3 h1:7JTqWbdeKp9ZeIlIoZTFaMC8/PwQ2HKFVOCbxAEY2B0=
github.com/yomorun/y3-codec-golang v1.6.3/go.mod h1:R+y8hQ/AHZ1tDzWtmspVeX7omqVWFJ42gdlXIOp35rA=
github.com/yomorun/y3-codec-golang v1.6.4 h1:2XZBafqNXvHp8PoVrEE3r4WW/nOGJZg/d2Hh0A0WBuk=
github.com/yomorun/y3-codec-golang v1.6.4/go.mod h1:R+y8hQ/AHZ1tDzWtmspVeX7omqVWFJ42gdlXIOp35rA=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
Expand Down

0 comments on commit db7753b

Please sign in to comment.