Skip to content

Commit 9f360cb

Browse files
authored
refactor(*): change the project name (#50)
close #49
1 parent e80fc3e commit 9f360cb

32 files changed

+87
-81
lines changed

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
*.out
1313

1414
# Dependency directories (remove the comment below to include it)
15-
# vendor/
16-
go.sum
17-
18-
# local using
19-
*.code
15+
vendor/
2016
*.temp
21-
*.docker
22-
*.deploy
17+
y3-codec-golang

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
>
33
> ⛳️ STATE: WIP
44
>
5-
> 🇨🇳 [简体中文](https://gitee.com/yomorun/yomo-codec-golang/blob/master/README_CN.md) 🇬🇧 [English](https://github.com/yomorun/yomo-codec-golang/blob/master/README.md)
5+
> 🇨🇳 [简体中文](https://gitee.com/yomorun/y3-codec-golang/blob/master/README_CN.md) 🇬🇧 [English](https://github.com/yomorun/y3-codec-golang/blob/master/README.md)
66
77
# Y3
8-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang?ref=badge_shield)
8+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang?ref=badge_shield)
99

1010
Y3 is the golang implementation of [YoMo Codec](https://github.com/yomorun/yomo-codec), which describe a fast and low CPU binding data encoder/decoder focus on edge computing and streaming processing.
1111

@@ -19,7 +19,7 @@ See [YoMo Codec SPEC](https://github.com/yomorun/yomo-codec)
1919

2020
## Use
2121

22-
`go get -u github.com/yomorun/yomo-codec-golang`
22+
`go get -u github.com/yomorun/y3-codec-golang`
2323

2424
## Examples
2525

@@ -30,7 +30,7 @@ package main
3030

3131
import (
3232
"fmt"
33-
y3 "github.com/yomorun/yomo-codec-golang"
33+
y3 "github.com/yomorun/y3-codec-golang"
3434
)
3535

3636
func main() {
@@ -67,7 +67,7 @@ package main
6767

6868
import (
6969
"fmt"
70-
y3 "github.com/yomorun/yomo-codec-golang"
70+
y3 "github.com/yomorun/y3-codec-golang"
7171
)
7272

7373
func main() {
@@ -90,7 +90,7 @@ package main
9090

9191
import (
9292
"fmt"
93-
y3 "github.com/yomorun/yomo-codec-golang"
93+
y3 "github.com/yomorun/y3-codec-golang"
9494
)
9595

9696
func main() {
@@ -127,4 +127,4 @@ More examples in `/examples/`
127127
[//]: contributor-faces
128128

129129
## License
130-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang?ref=badge_large)
130+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang?ref=badge_large)

README_CN.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
>
33
> ⛳️ STATE: WIP
44
>
5-
> 🇨🇳 [简体中文](README_CN.md) 🇬🇧 [English](https://github.com/yomorun/yomo-codec-golang/blob/master/README.md)
5+
> 🇨🇳 [简体中文](README_CN.md) 🇬🇧 [English](https://github.com/yomorun/y3-codec-golang/blob/master/README.md)
66
77
# Y3
8-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang?ref=badge_shield)
8+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang?ref=badge_shield)
99

1010

1111
Golang implementation of [YoMo Codec](https://github.com/yomorun/yomo-codec)
1212

1313
## 目标
1414

15-
[Yomo-codec-golang](https://github.com/yomorun/yomo-codec-golang) 是通过golang语言实现[YoMo Codec](https://github.com/yomorun/yomo-codec)[SPEC](https://github.com/yomorun/yomo-codec/blob/draft-01/SPEC.md)描述 ;提供对`TLV结构`及基础数据类型进行编解码的能力,并且为[YoMo](https://github.com/yomorun/yomo)提供支持其消息处理的编解码工具。你可以为其扩展出更多数据类型的处理,甚至可以扩展并应用到其它需要编解码的框架中。
15+
[y3-codec-golang](https://github.com/yomorun/y3-codec-golang) 是通过golang语言实现[YoMo Codec](https://github.com/yomorun/yomo-codec)[SPEC](https://github.com/yomorun/yomo-codec/blob/draft-01/SPEC.md)描述 ;提供对`TLV结构`及基础数据类型进行编解码的能力,并且为[YoMo](https://github.com/yomorun/yomo)提供支持其消息处理的编解码工具。你可以为其扩展出更多数据类型的处理,甚至可以扩展并应用到其它需要编解码的框架中。
1616

1717
## 结构
18-
![yomo-codec-golang-v1.0.png](./docs/yomo-codec-golang-v1.0.png)
18+
![y3-codec-golang-v1.0.png](./docs/y3-codec-golang-v1.0.png)
1919

2020
逻辑结构上主要分为两部分:实现[SPEC](https://github.com/yomorun/yomo-codec/blob/draft-01/SPEC.md)描述的基础编解码能力;在spec功能基础上为[YoMo](https://github.com/yomorun/yomo)等外部框架提供的扩展能力。
2121

@@ -133,7 +133,7 @@ package main
133133
import (
134134
"fmt"
135135

136-
"github.com/yomorun/yomo-codec-golang/pkg/codes"
136+
"github.com/yomorun/y3-codec-golang/pkg/codes"
137137
)
138138

139139
func main() {
@@ -155,7 +155,7 @@ package main
155155
import (
156156
"fmt"
157157

158-
"github.com/yomorun/yomo-codec-golang/pkg/codes"
158+
"github.com/yomorun/y3-codec-golang/pkg/codes"
159159
)
160160

161161
func main() {
@@ -180,7 +180,7 @@ import (
180180
"fmt"
181181
"reflect"
182182

183-
"github.com/yomorun/yomo-codec-golang/pkg/codes"
183+
"github.com/yomorun/y3-codec-golang/pkg/codes"
184184
)
185185

186186
func main() {
@@ -205,7 +205,7 @@ import (
205205
"fmt"
206206
"reflect"
207207

208-
"github.com/yomorun/yomo-codec-golang/pkg/codes"
208+
"github.com/yomorun/y3-codec-golang/pkg/codes"
209209
)
210210

211211
func main() {
@@ -233,7 +233,7 @@ package main
233233

234234
import (
235235
"fmt"
236-
y3 "github.com/yomorun/yomo-codec-golang"
236+
y3 "github.com/yomorun/y3-codec-golang"
237237
)
238238

239239
func main() {
@@ -271,7 +271,7 @@ package main
271271
import (
272272
"fmt"
273273

274-
y3 "github.com/yomorun/yomo-codec-golang"
274+
y3 "github.com/yomorun/y3-codec-golang"
275275
)
276276

277277
func main() {
@@ -294,7 +294,7 @@ package main
294294

295295
import (
296296
"fmt"
297-
y3 "github.com/yomorun/yomo-codec-golang"
297+
y3 "github.com/yomorun/y3-codec-golang"
298298
)
299299

300300
func main() {
@@ -335,7 +335,7 @@ import (
335335
"fmt"
336336
"reflect"
337337

338-
"github.com/yomorun/yomo-codec-golang/pkg/spec/encoding"
338+
"github.com/yomorun/y3-codec-golang/pkg/spec/encoding"
339339
)
340340

341341
func main() {
@@ -379,7 +379,7 @@ More examples in `/pkg/spec/encoding/pvarint_test.go|varfloat_test.go`
379379

380380
#### 测试源代码:
381381

382-
* Y3: [Y3 Benchmark](https://github.com/yomorun/yomo-codec-golang/blob/master/pkg/codes/yomo_benchmark_test.go)
382+
* Y3: [Y3 Benchmark](https://github.com/yomorun/y3-codec-golang/blob/master/pkg/codes/yomo_benchmark_test.go)
383383
* JSON: [JSON Benchmark](https://github.com/10cella/yomo-json-codec/blob/master/codec_benchmark_test.go)
384384

385385
### 2. 性能比较
@@ -413,7 +413,7 @@ More examples in `/pkg/spec/encoding/pvarint_test.go|varfloat_test.go`
413413
- [x] 支持Bool类型
414414
- [x] v0.4.0 - 支持[yomo-thermometer-plugin](https://github.com/10cella/yomo-thermometer-plugin)插件
415415
- [x] 支持[]Thermometer{}的Mold形式
416-
- [x] [YoMo](https://github.com/yomorun/yomo)框架的正式切换至[Yomo-codec-golang](https://github.com/yomorun/yomo-codec-golang)
416+
- [x] [YoMo](https://github.com/yomorun/yomo)框架的正式切换至[y3-codec-golang](https://github.com/yomorun/y3-codec-golang)
417417
- [x] v1.0.0 - 性能压测及优化重构
418418
- [x] YomoCodec的性能测试,与JSON实现版本的对比
419419
- [x] 通过跳KEY解码字节流优化性能
@@ -441,4 +441,4 @@ See [SPEC](https://github.com/yomorun/yomo-codec)
441441
[//]: contributor-faces
442442

443443
## License
444-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fyomo-codec-golang?ref=badge_large)
444+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyomorun%2Fy3-codec-golang?ref=badge_large)

base_packet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package y3
22

33
import (
4-
"github.com/yomorun/yomo-codec-golang/internal/mark"
5-
"github.com/yomorun/yomo-codec-golang/internal/utils"
4+
"github.com/yomorun/y3-codec-golang/internal/mark"
5+
"github.com/yomorun/y3-codec-golang/internal/utils"
66
)
77

88
type basePacket struct {
File renamed without changes.

encoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"fmt"
66

7-
"github.com/yomorun/yomo-codec-golang/pkg/spec/encoding"
7+
"github.com/yomorun/y3-codec-golang/pkg/spec/encoding"
88
)
99

1010
// Encoder will encode object to Y3 encoding

examples/decode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package main
33
import (
44
"fmt"
55

6-
utils2 "github.com/yomorun/yomo-codec-golang/pkg/packetutils"
6+
utils2 "github.com/yomorun/y3-codec-golang/pkg/packetutils"
77

8-
"github.com/yomorun/yomo-codec-golang/internal/utils"
8+
"github.com/yomorun/y3-codec-golang/internal/utils"
99

10-
y3 "github.com/yomorun/yomo-codec-golang"
10+
y3 "github.com/yomorun/y3-codec-golang"
1111
)
1212

1313
func main() {

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
module github.com/yomorun/yomo-codec-golang
1+
module github.com/yomorun/y3-codec-golang
22

3-
go 1.14
3+
go 1.15
44

55
require (
6-
github.com/10cella/yomo-y3-stress-testing v1.0.0 // indirect
76
github.com/stretchr/testify v1.6.1
87
github.com/ugorji/go v1.2.1 // indirect
98
)

go.sum

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
6+
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
7+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
8+
github.com/ugorji/go v1.2.1/go.mod h1:cSVypSfTLm2o9fKxXvQgn3rMmkPXovcWor6Qn5tbFmI=
9+
github.com/ugorji/go/codec v1.2.1/go.mod h1:s/WxCRi46t8rA+fowL40EnmD7ec0XhR7ZypxeBNdzsM=
10+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
11+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
12+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

internal/mark/tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package mark
33
import (
44
"fmt"
55

6-
"github.com/yomorun/yomo-codec-golang/internal/utils"
6+
"github.com/yomorun/y3-codec-golang/internal/utils"
77
)
88

99
// Tag represents the Tag of TLV

0 commit comments

Comments
 (0)