strings.Bytes(str) -> []byte(str)
This commit is contained in:
parent
0b97efd611
commit
4007dcb414
2
irc.go
2
irc.go
@ -57,7 +57,7 @@ func reader(irc *IRCConnection) {
|
|||||||
|
|
||||||
func writer(irc *IRCConnection) {
|
func writer(irc *IRCConnection) {
|
||||||
for {
|
for {
|
||||||
b := strings.Bytes(<-irc.pwrite)
|
b := []byte(<-irc.pwrite)
|
||||||
_, err := irc.socket.Write(b)
|
_, err := irc.socket.Write(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("%s\n", err)
|
fmt.Printf("%s\n", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user