irctext

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

README

irctext Go Reference

dead simple IRC text formatter.

supported format

$bBold
$uUnderlined
$sStrikethrough
$iItalic
$b$uBold & Underline
$u$iUnderline & Italic
$c01,00Colored with background
$c04Red text
$hcFF0000Hex color (red)
$mMonospaced text

additionally:

$ctcpPING foo bar$ctcp
$ctcpPING foo bar$ctcp

getting started:

this will send bold text.

text := "$bThis is bold text"
irc.Chat(conn, "#channel", irctext.Format(text))

documentation

press this: Go Reference

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Replacer = strings.NewReplacer(
	"$ctcp", string(0x01),
	"$c", string(0x03),
	"$hc", string(0x04),
	"$b", string(0x02),
	"$i", string(0x1D),
	"$u", string(0x1F),
	"$s", string(0x1E),
	"$m", string(0x11),
	"$rc", string(0x16),
	"$r", string(0x0F),
)

Functions

func Format

func Format(input string) string

Format text style format into IRC compatible text

Types

This section is empty.

Jump to

Keyboard shortcuts

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