go-irc

A basic SSL-supporting IRC client written in golang.
git clone http://git.hanabi.in/repos/go-irc.git
Log | Files | Refs | LICENSE

irc.go (245B)


      1 package main
      2 
      3 import (
      4 	"log"
      5 )
      6 
      7 func main() {
      8 	conn := GetTLSConn()
      9 	defer conn.Close()
     10 
     11 	log.Println("client: connected to: ", conn.RemoteAddr())
     12 
     13 	ircClient := GetIRCClient(conn)
     14 	if err := ircClient.Run(); err != nil {
     15 		log.Fatal(err)
     16 	}
     17 }