mirror of
https://github.com/fluffle/goirc
synced 2025-06-07 15:23:20 +00:00
Syntax highlighting
Markdown knows about golang, so use that for the code sample
This commit is contained in:
parent
8be75dd9d4
commit
2feca0e68f
1 changed files with 39 additions and 38 deletions
|
@ -15,7 +15,7 @@ old `go1` API.
|
||||||
### Using the framework
|
### Using the framework
|
||||||
|
|
||||||
Synopsis:
|
Synopsis:
|
||||||
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -60,6 +60,7 @@ Synopsis:
|
||||||
// Wait for disconnect
|
// Wait for disconnect
|
||||||
<-quit
|
<-quit
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
The test client provides a good (if basic) example of how to use the framework.
|
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
|
Reading `client/handlers.go` gives a more in-depth look at how handlers can be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue