mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-03 19:48:04 +00:00 
			
		
		
		
	Resolve merge conflicts
This commit is contained in:
		
							parent
							
								
									6277eb6e2d
								
							
						
					
					
						commit
						7481baa454
					
				
					 1 changed files with 41 additions and 40 deletions
				
			
		
							
								
								
									
										13
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -15,17 +15,17 @@ old `go1` API.
 | 
			
		|||
### Using the framework
 | 
			
		||||
 | 
			
		||||
Synopsis:
 | 
			
		||||
```go
 | 
			
		||||
package main
 | 
			
		||||
 | 
			
		||||
	package main
 | 
			
		||||
 | 
			
		||||
	import (
 | 
			
		||||
import (
 | 
			
		||||
	"crypto/tls"
 | 
			
		||||
	"fmt"
 | 
			
		||||
 | 
			
		||||
	irc "github.com/fluffle/goirc/client"
 | 
			
		||||
	)
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
	func main() {
 | 
			
		||||
func main() {
 | 
			
		||||
	// Creating a simple IRC client is simple.
 | 
			
		||||
	c := irc.SimpleClient("nick")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -61,7 +61,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…
	
	Add table
		Add a link
		
	
		Reference in a new issue