mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-27 20:36:30 -04:00
20 lines
223 B
Go
20 lines
223 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) > 1 {
|
|
switch os.Args[1] {
|
|
case "client":
|
|
fmt.Println("RPC Reply: " + CallDaemon())
|
|
default:
|
|
StartDaemon()
|
|
}
|
|
} else {
|
|
StartDaemon()
|
|
}
|
|
}
|