Documentation ¶
Overview ¶
Package ircdebug contains helper functions that are useful while writing an IRC client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteTo ¶
func WriteTo(w io.Writer, rwc io.ReadWriteCloser, outPrefix string, inPrefix string) io.ReadWriteCloser
WriteTo returns a new io.ReadWriteCloser that copies all reads/writes for rwc to w. Reads and Writes are prefixed with inPrefix and outPrefix respectively. This is mainly useful while developing an IRC client like a bot, e.g. for writing to os.Stdout or a file. todo: it's not safe for concurrent usage, so replies are sometimes mixed in with connection reads
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.