ircdebug

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL