|
@@ -1,19 +1,20 @@
|
|
package main
|
|
package main
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "fmt"
|
|
|
|
+ "log"
|
|
|
|
+ "net/http"
|
|
|
|
+ _ "net/http/pprof"
|
|
|
|
+ "os"
|
|
|
|
+ "strings"
|
|
|
|
+
|
|
"./models"
|
|
"./models"
|
|
"./pkg/logging"
|
|
"./pkg/logging"
|
|
"./pkg/setting"
|
|
"./pkg/setting"
|
|
"./routers"
|
|
"./routers"
|
|
"./routers/api"
|
|
"./routers/api"
|
|
- "fmt"
|
|
|
|
"github.com/kardianos/service"
|
|
"github.com/kardianos/service"
|
|
"github.com/kptyun/KPTCOMM/mdns"
|
|
"github.com/kptyun/KPTCOMM/mdns"
|
|
- "log"
|
|
|
|
- "net/http"
|
|
|
|
- _ "net/http/pprof"
|
|
|
|
- "os"
|
|
|
|
- "strings"
|
|
|
|
//"unsafe"
|
|
//"unsafe"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -59,7 +60,7 @@ func main() {
|
|
if os.Args[1] == "remove" {
|
|
if os.Args[1] == "remove" {
|
|
err = s.Uninstall()
|
|
err = s.Uninstall()
|
|
if err != nil {
|
|
if err != nil {
|
|
- fmt.Println("Uninstall err", err)
|
|
|
|
|
|
+ fmt.Println("Uninstall err3123123", err)
|
|
} else {
|
|
} else {
|
|
fmt.Println("Uninstall success")
|
|
fmt.Println("Uninstall success")
|
|
}
|
|
}
|