summaryrefslogtreecommitdiff
path: root/vendor/github.com/fluffle/goirc/client/doc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-07-06 18:59:20 +0200
committerDimitri Sokolyuk <demon@dim13.org>2019-07-06 18:59:20 +0200
commit5d55bc03e829afdad427f7539c1e08e65b88d409 (patch)
treef1795cdef24801fba731d3a893b473cce61e9af1 /vendor/github.com/fluffle/goirc/client/doc.go
parentbe263b349d54318de512b25ba2488044c867df0d (diff)
drop vendor
Diffstat (limited to 'vendor/github.com/fluffle/goirc/client/doc.go')
-rw-r--r--vendor/github.com/fluffle/goirc/client/doc.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/vendor/github.com/fluffle/goirc/client/doc.go b/vendor/github.com/fluffle/goirc/client/doc.go
deleted file mode 100644
index 08a79dd..0000000
--- a/vendor/github.com/fluffle/goirc/client/doc.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Package client implements an IRC client. It handles protocol basics
-// such as initial connection and responding to server PINGs, and has
-// optional state tracking support which will keep tabs on every nick
-// present in the same channels as the client. Other features include
-// SSL support, automatic splitting of long lines, and panic recovery
-// for handlers.
-//
-// Incoming IRC messages are parsed into client.Line structs and trigger
-// events based on the IRC verb (e.g. PRIVMSG) of the message. Handlers
-// for these events conform to the client.Handler interface; a HandlerFunc
-// type to wrap bare functions is provided a-la the net/http package.
-//
-// Creating a client, adding a handler and connecting to a server looks
-// soemthing like this, for the simple case:
-//
-// // Create a new client, which will connect with the nick "myNick"
-// irc := client.SimpleClient("myNick")
-//
-// // Add a handler that waits for the "disconnected" event and
-// // closes a channel to signal everything is done.
-// disconnected := make(chan struct{})
-// c.HandleFunc("disconnected", func(c *client.Conn, l *client.Line) {
-// close(disconnected)
-// })
-//
-// // Connect to an IRC server.
-// if err := c.ConnectTo("irc.freenode.net"); err != nil {
-// log.Fatalf("Connection error: %v\n", err)
-// }
-//
-// // Wait for disconnection.
-// <-disconnected
-//
-package client