strings.Bytes(str) -> []byte(str)

This commit is contained in:
tj 2010-03-01 17:09:03 +01:00
parent 0b97efd611
commit 4007dcb414

2
irc.go
View File

@ -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)