v0.3.0
irc-go v0.3.0 is a new tagged release. It incorporates enhancements to ircevent
, our IRC client library, and ircfmt
, our library for handling IRC formatting codes. There are no API breaks relative to previous tagged versions.
Thanks to @kofany for helpful discussions.
Added
- Added
(*ircevent.Connection).DialContext
, an optional callback for customizing how ircevent creates IRC connections. Clients can create a customnet.Dialer
instance and pass in itsDialContext
method, or use a callback that invokes a proxy, e.g. a SOCKS proxy (seeircevent/examples/proxy.go
for an example). (#64, #91) - Added
ircfmt.Split()
, which splits an IRC message containing formatting codes into a machine-readable representation (a slice ofircfmt.FormattedSubstring
). (#89) - Added
ircfmt.ParseColor()
, which parses an IRC color code string into a machine-readable representation (anircfmt.ColorCode
). (#89, #92)
Fixed
- Fixed some edge cases in
ircfmt.Strip()
(#89)