https://github.com/rendom/ircformat
Colorize irc messages.
https://github.com/rendom/ircformat
Last synced: 7 months ago
JSON representation
Colorize irc messages.
- Host: GitHub
- URL: https://github.com/rendom/ircformat
- Owner: rendom
- License: mit
- Created: 2015-12-13T14:53:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T17:20:53.000Z (about 6 years ago)
- Last Synced: 2024-12-27T12:09:35.205Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/rendom/ircFormat)
# ircFormat
Library to format irc messages
https://godoc.org/github.com/rendom/ircFormat
####Example usage:####
```
// Bold text with red foreground
i.Privmsg(CHAN, ircFormat.New("Test").SetBold().SetFg(ircFormat.Red));
// Bold text
i.Privmsg(CHAN, ircFormat.Bold("Test!"));
// Italic text
i.Privmsg(CHAN, ircFormat.Italic("Test!"));
// Underline text
i.Privmsg(CHAN, ircFormat.Underline("Test!"));
// Red text
i.Privmsg(CHAN, ircFormat.Colorize("Test!", ircFormat.Red, ircFormat.None));
// Red text with green background
i.Privmsg(CHAN, ircFormat.Colorize("Test!", ircFormat.Red, ircFormat.Green));
```