diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-02-10 15:03:55 +0100 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-02-10 15:03:55 +0100 |
| commit | 4660317cbba12af5ae1546948785301e7f9108b4 (patch) | |
| tree | 369de1c56b0dc774e2b6d9b29739601304688231 /example_test.go | |
| parent | 3650f193abcee4dbc71922c6ecf59fcbcea3637b (diff) | |
| download | muxer-4660317cbba12af5ae1546948785301e7f9108b4.tar.gz muxer-4660317cbba12af5ae1546948785301e7f9108b4.zip | |
Naming
Diffstat (limited to 'example_test.go')
| -rw-r--r-- | example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example_test.go b/example_test.go index 5b31475..0547111 100644 --- a/example_test.go +++ b/example_test.go @@ -27,7 +27,7 @@ func ExampleDial() { return } - fmt.Printf("%d %d %s\n", msg.ID, msg.Channel, msg.Data) + fmt.Printf("%d %d %s\n", msg.ID, msg.Type, msg.Data) s.close() } @@ -65,7 +65,7 @@ func (s *server) handle(conn net.Conn) { return } - fmt.Printf("%d %d %s\n", msg.ID, msg.Channel, msg.Data) + fmt.Printf("%d %d %s\n", msg.ID, msg.Type, msg.Data) _, err = c.Send(binproto.NewMessage(112, 5, []byte("hey"))) if err != nil { |
