This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (c *Client) Leave(channels ...string) { | |
for _, channel := range channels { | |
go c.send(fmt.Sprintf("PART #%s", channel)) //prob worst way | |
} | |
} | |
func (c *Client) Leave(channels ...string) { | |
var channelListString string | |
for _, channel := range channels { | |
channelListString += fmt.Sprintf("#%s ", channel) //seems good but 5 lines |