all: run goimports.

This commit is contained in:
Daniel Theophanes
2014-05-27 07:11:50 -07:00
parent 85390beb86
commit eb52bdfe36
6 changed files with 15 additions and 10 deletions
+3 -2
View File
@@ -4,13 +4,14 @@
package config
import (
"bitbucket.org/kardianos/osext"
"code.google.com/p/go.exp/fsnotify"
"encoding/json"
"io"
"os"
"path/filepath"
"time"
"bitbucket.org/kardianos/osext"
"code.google.com/p/go.exp/fsnotify"
)
const DefaultPostfix = "_config.json"
+2 -1
View File
@@ -1,9 +1,10 @@
package main
import (
"bitbucket.org/kardianos/service"
"fmt"
"os"
"bitbucket.org/kardianos/service"
)
var log service.Logger
+2 -1
View File
@@ -1,13 +1,14 @@
package service
import (
"bitbucket.org/kardianos/osext"
"fmt"
"log/syslog"
"os"
"os/exec"
"os/signal"
"text/template"
"bitbucket.org/kardianos/osext"
)
const maxPathSize = 32 * 1024
+4 -4
View File
@@ -191,8 +191,8 @@ func (s *linuxService) Start() error {
return exec.Command("initctl", "start", s.name).Run()
}
if s.flavor == initSystemd {
return exec.Command("systemctl", "start", s.name + ".service").Run()
}
return exec.Command("systemctl", "start", s.name+".service").Run()
}
return exec.Command("service", s.name, "start").Run()
}
@@ -201,8 +201,8 @@ func (s *linuxService) Stop() error {
return exec.Command("initctl", "stop", s.name).Run()
}
if s.flavor == initSystemd {
return exec.Command("systemctl", "stop", s.name + ".service").Run()
}
return exec.Command("systemctl", "stop", s.name+".service").Run()
}
return exec.Command("service", s.name, "stop").Run()
}
+2 -1
View File
@@ -1,11 +1,12 @@
package service
import (
"fmt"
"bitbucket.org/kardianos/osext"
"code.google.com/p/winsvc/eventlog"
"code.google.com/p/winsvc/mgr"
"code.google.com/p/winsvc/svc"
"fmt"
)
func newService(name, displayName, description string) (*windowsService, error) {
+2 -1
View File
@@ -16,9 +16,10 @@ These commands will do the following actions:
package stdservice
import (
"bitbucket.org/kardianos/service"
"fmt"
"os"
"bitbucket.org/kardianos/service"
)
// Standard service configuration. Start MUST block.