From 82c9b0060c2863502928230022cb9713af29cb2a Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Fri, 11 May 2012 01:33:29 -0700 Subject: [PATCH] go fmt. --- service_linux.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/service_linux.go b/service_linux.go index 9d3fca0..cb68699 100644 --- a/service_linux.go +++ b/service_linux.go @@ -1,11 +1,11 @@ package service import ( - "os" "fmt" "log/syslog" - "text/template" + "os" "os/signal" + "text/template" ) func newService(name, displayName, description string) (s *linuxUpstartService, err error) { @@ -47,17 +47,17 @@ func (s *linuxUpstartService) Install() error { } var to = &struct { - Display string + Display string Description string - Path string - } { + Path string + }{ s.displayName, s.description, path, } t := template.Must(template.New("upstartScript").Parse(upstartScript)) - err = t.Execute(f,to) + err = t.Execute(f, to) if err != nil { return err @@ -82,7 +82,7 @@ func (s *linuxUpstartService) Run(onStart, onStop func() error) error { signal.Notify(sigChan, os.Kill) - <- sigChan + <-sigChan return onStop() }