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 package config
import ( import (
"bitbucket.org/kardianos/osext"
"code.google.com/p/go.exp/fsnotify"
"encoding/json" "encoding/json"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"
"time" "time"
"bitbucket.org/kardianos/osext"
"code.google.com/p/go.exp/fsnotify"
) )
const DefaultPostfix = "_config.json" const DefaultPostfix = "_config.json"
+2 -1
View File
@@ -1,9 +1,10 @@
package main package main
import ( import (
"bitbucket.org/kardianos/service"
"fmt" "fmt"
"os" "os"
"bitbucket.org/kardianos/service"
) )
var log service.Logger var log service.Logger
+2 -1
View File
@@ -1,13 +1,14 @@
package service package service
import ( import (
"bitbucket.org/kardianos/osext"
"fmt" "fmt"
"log/syslog" "log/syslog"
"os" "os"
"os/exec" "os/exec"
"os/signal" "os/signal"
"text/template" "text/template"
"bitbucket.org/kardianos/osext"
) )
const maxPathSize = 32 * 1024 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() return exec.Command("initctl", "start", s.name).Run()
} }
if s.flavor == initSystemd { 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() 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() return exec.Command("initctl", "stop", s.name).Run()
} }
if s.flavor == initSystemd { 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() return exec.Command("service", s.name, "stop").Run()
} }
+2 -1
View File
@@ -1,11 +1,12 @@
package service package service
import ( import (
"fmt"
"bitbucket.org/kardianos/osext" "bitbucket.org/kardianos/osext"
"code.google.com/p/winsvc/eventlog" "code.google.com/p/winsvc/eventlog"
"code.google.com/p/winsvc/mgr" "code.google.com/p/winsvc/mgr"
"code.google.com/p/winsvc/svc" "code.google.com/p/winsvc/svc"
"fmt"
) )
func newService(name, displayName, description string) (*windowsService, error) { 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 package stdservice
import ( import (
"bitbucket.org/kardianos/service"
"fmt" "fmt"
"os" "os"
"bitbucket.org/kardianos/service"
) )
// Standard service configuration. Start MUST block. // Standard service configuration. Start MUST block.