mirror of https://github.com/fluffle/goirc
Syntax highlighting
Markdown knows about golang, so use that for the code sample
This commit is contained in:
parent
8be75dd9d4
commit
2feca0e68f
13
README.md
13
README.md
|
@ -15,16 +15,16 @@ old `go1` API.
|
|||
### Using the framework
|
||||
|
||||
Synopsis:
|
||||
```go
|
||||
package main
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
irc "github.com/fluffle/goirc/client"
|
||||
)
|
||||
)
|
||||
|
||||
func main() {
|
||||
func main() {
|
||||
// Creating a simple IRC client is simple.
|
||||
c := irc.SimpleClient("nick")
|
||||
|
||||
|
@ -59,7 +59,8 @@ Synopsis:
|
|||
|
||||
// Wait for disconnect
|
||||
<-quit
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The test client provides a good (if basic) example of how to use the framework.
|
||||
Reading `client/handlers.go` gives a more in-depth look at how handlers can be
|
||||
|
|
Loading…
Reference in New Issue