Update to not use cgo but to use Alex's winsvc

This commit is contained in:
Daniel Theophanes
2012-08-22 15:51:49 -07:00
parent 0820a32861
commit abf7cbf3fa
3 changed files with 92 additions and 617 deletions
+5 -4
View File
@@ -1,17 +1,18 @@
package main
import (
"../../service"
"bitbucket.org/kardianos/service"
"fmt"
"os"
)
func main() {
var displayName = "Go Service Test2"
var name = "GoServiceTest"
var displayName = "Go Service Test"
var desc = "This is a test Go service. It is designed to run well."
var ws, err = service.NewService("GoServiceTest2", displayName, desc)
var ws, err = service.NewService(name, displayName, desc)
if(err != nil) {
if err != nil {
fmt.Printf("%s unable to start: %s", displayName, err)
return
}