gofmt fixes.
This commit is contained in:
parent
44af303de6
commit
990b7071d0
3 changed files with 11 additions and 11 deletions
6
main.go
6
main.go
|
@ -60,15 +60,15 @@ func main() {
|
||||||
accessLogEntries := make(chan LogEntry, 10)
|
accessLogEntries := make(chan LogEntry, 10)
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
entry := <- accessLogEntries
|
entry := <-accessLogEntries
|
||||||
writeLogEntry(accessLogFile, entry)
|
writeLogEntry(accessLogFile, entry)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
errorLogEntries := make(chan string, 10)
|
errorLogEntries := make(chan string, 10)
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
message := <- errorLogEntries
|
message := <-errorLogEntries
|
||||||
errorLogFile.WriteString( time.Now().Format(time.RFC3339) + " " + message + "\n")
|
errorLogFile.WriteString(time.Now().Format(time.RFC3339) + " " + message + "\n")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue