Move daemon code to dedicated package

This commit is contained in:
2025-04-02 00:18:18 -04:00
parent 1cd123ab31
commit e3d5c83968
4 changed files with 11 additions and 9 deletions
+20
View File
@@ -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()
}
}