Documentation ¶ Index ¶ func Main(args []string) type Action func ActionFromArgs(args []string) Action Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Main ¶ func Main(args []string) Main is the entrypoint into /sbin/poweroff. Types ¶ type Action ¶ type Action string Action is the action to be performed by the poweroff command. const ( // Shutdown is the action to shutdown the machine. Shutdown Action = "shutdown" // Reboot is the action to reboot the machine. Reboot Action = "reboot" ) func ActionFromArgs ¶ func ActionFromArgs(args []string) Action ActionFromArgs returns the action to be performed based on the arguments. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.