sysutils

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

sysutils, handles primarily OS operations like rebooting the system, file handling and running shell commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile, copy the src file to dst. Any existing file will be overwritten and will not copy file attributes.

func Reboot

func Reboot() error

Reboot, reboots the system.

func ShCmd

func ShCmd(args ...string) (string, error)

ShCmd, run a shell command. args[0] is the command name, args[1:] are the command arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL