From 4007dcb4142cbebb7fb0739a76bbf0fd556bee18 Mon Sep 17 00:00:00 2001 From: tj Date: Mon, 1 Mar 2010 17:09:03 +0100 Subject: [PATCH] strings.Bytes(str) -> []byte(str) --- irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.go b/irc.go index b1d7350..88ab7d7 100644 --- a/irc.go +++ b/irc.go @@ -57,7 +57,7 @@ func reader(irc *IRCConnection) { func writer(irc *IRCConnection) { for { - b := strings.Bytes(<-irc.pwrite) + b := []byte(<-irc.pwrite) _, err := irc.socket.Write(b) if err != nil { fmt.Printf("%s\n", err)