mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-09-01 22:57:26 -04:00
Move daemon code to dedicated package
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"rcw/daemon"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 1 {
|
||||
switch os.Args[1] {
|
||||
case "client":
|
||||
fmt.Println("RPC Reply: " + daemon.Call())
|
||||
default:
|
||||
daemon.Run()
|
||||
}
|
||||
} else {
|
||||
daemon.Run()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user