Run gofmt over everything, for great justice.

This commit is contained in:
Alex Bramley 2010-11-04 00:25:46 +00:00
parent 6bb5558c46
commit c419ef1ead
5 changed files with 32 additions and 33 deletions

View File

@ -124,7 +124,7 @@ func (conn *Conn) Mode(t string, modestring ...string) {
func (conn *Conn) Away(message ...string) {
msg := strings.Join(message, " ")
if msg != "" {
msg = " :"+msg
msg = " :" + msg
}
conn.out <- "AWAY"+msg
}

View File

@ -160,7 +160,7 @@ func hasPort(s string) bool {
// flood controlled using hybrid's algorithm if conn.Flood is true
func (conn *Conn) send() {
lastsent := time.Nanoseconds()
var badness, linetime, second int64 = 0, 0, 1000000000;
var badness, linetime, second int64 = 0, 0, 1000000000
for line := range conn.out {
// Hybrid's algorithm allows for 2 seconds per line and an additional
// 1/120 of a second per character on that line.

View File

@ -12,4 +12,3 @@ func TestIRC(t *testing.T) {
t.FailNow()
}
}