Skip to content

Commit 2762422

Browse files
committedMay 13, 2022
change package name
1 parent b9d403f commit 2762422

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
 

‎README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ The parser can encode/decode packets, payloads and payloads as binary.
2828
Example:
2929

3030
```go
31-
payload := eio_parser.Payload{
32-
{Type: eio_parser.Open},
33-
{Type: eio_parser.Close},
34-
{Type: eio_parser.Ping, Data: "probe"},
35-
{Type: eio_parser.Pong, Data: "probe"},
36-
{Type: eio_parser.Message, Data: "test"},
31+
payload := eiop.Payload{
32+
{Type: eiop.Open},
33+
{Type: eiop.Close},
34+
{Type: eiop.Ping, Data: "probe"},
35+
{Type: eiop.Pong, Data: "probe"},
36+
{Type: eiop.Message, Data: "test"},
3737
}
3838
encoded := payload.Encode(&buf)
3939
fmt.Println(encoded.(string))
4040

41-
payload1 = eio_parser.DecodePayload(encoded) // payload == payload1
41+
payload1 = eiop.DecodePayload(encoded) // payload == payload1
4242
```
4343

4444
## License

‎codec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eio_parser
1+
package eiop
22

33
import (
44
"encoding/base64"

‎codec_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eio_parser
1+
package eiop
22

33
import (
44
"bytes"

‎packet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eio_parser
1+
package eiop
22

33
import "strconv"
44

‎packet_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package eio_parser
1+
package eiop
22

33
import (
44
"fmt"

0 commit comments

Comments
 (0)
Please sign in to comment.