mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-03 19:48:04 +00:00 
			
		
		
		
	all: gofmt
Run standard gofmt command on project root. - go version go1.10.3 darwin/amd64 Signed-off-by: ia <isaac.ardis@gmail.com>
This commit is contained in:
		
							parent
							
								
									fc1dfa1ceb
								
							
						
					
					
						commit
						f41aff85a2
					
				
					 5 changed files with 16 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -2,8 +2,8 @@ package glog
 | 
			
		|||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"github.com/golang/glog"
 | 
			
		||||
	"github.com/fluffle/goirc/logging"
 | 
			
		||||
	"github.com/golang/glog"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Simple adapter to utilise Google's GLog package with goirc.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
package golog
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	log "github.com/fluffle/golog/logging"
 | 
			
		||||
	"github.com/fluffle/goirc/logging"
 | 
			
		||||
	log "github.com/fluffle/golog/logging"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Simple adapter to utilise my logging package with goirc.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,13 +31,14 @@ func SetLogger(l Logger) {
 | 
			
		|||
 | 
			
		||||
// A nullLogger does nothing while fulfilling Logger.
 | 
			
		||||
type nullLogger struct{}
 | 
			
		||||
 | 
			
		||||
func (nl nullLogger) Debug(f string, a ...interface{}) {}
 | 
			
		||||
func (nl nullLogger) Info(f string, a ...interface{}) {}
 | 
			
		||||
func (nl nullLogger) Warn(f string, a ...interface{}) {}
 | 
			
		||||
func (nl nullLogger) Info(f string, a ...interface{})  {}
 | 
			
		||||
func (nl nullLogger) Warn(f string, a ...interface{})  {}
 | 
			
		||||
func (nl nullLogger) Error(f string, a ...interface{}) {}
 | 
			
		||||
 | 
			
		||||
// Shim functions so that the package can be used directly
 | 
			
		||||
func Debug(f string, a ...interface{}) { logger.Debug(f, a...) }
 | 
			
		||||
func Info(f string, a ...interface{}) { logger.Info(f, a...) }
 | 
			
		||||
func Warn(f string, a ...interface{}) { logger.Warn(f, a...) }
 | 
			
		||||
func Info(f string, a ...interface{})  { logger.Info(f, a...) }
 | 
			
		||||
func Warn(f string, a ...interface{})  { logger.Warn(f, a...) }
 | 
			
		||||
func Error(f string, a ...interface{}) { logger.Error(f, a...) }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue