irc/readme.md
2025-03-06 21:41:28 -05:00

623 B

Go Report Card

irc

Basic but complete irc library for go

  • Callbacks for Messages (direct and channel), Joins/parts/quits and numeric codes
  • Maintains list of nicks in a channel
  • TLS support (upcoming)

usage

basic example:

con := NewConnection("irc.ouch.chat:6667", "irc-go", "irc-go", nil, []string{channel})

con.PrivmsgCallback = func(target, from, msg) {
    log.Printf("message from %s in channel %s > %s", GetNick(from), target, msg)
}

con.Run()