mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-10-28 06:29:58 -04:00
Move daemon code to dedicated package
This commit is contained in:
1 parent
1cd123ab31
commit
e3d5c83968
4 files changed
+11
-9
No files matched your search
+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