package osutil
import "github.com/coreos/etcd/pkg/osutil"
Package osutil implements operating system-related utility functions.
Index ¶
- func Exit(code int)
- func HandleInterrupts()
- func RegisterInterruptHandler(h InterruptHandler)
- func Unsetenv(key string) error
- type InterruptHandler
Functions ¶
func Exit ¶
func Exit(code int)
Exit calls os.Exit
func HandleInterrupts ¶
func HandleInterrupts()
HandleInterrupts is a no-op on windows
func RegisterInterruptHandler ¶
func RegisterInterruptHandler(h InterruptHandler)
RegisterInterruptHandler is a no-op on windows
func Unsetenv ¶
Types ¶
type InterruptHandler ¶
type InterruptHandler func()
Source Files ¶
interrupt_windows.go osutil.go
- Version
- v3.1.3+incompatible
- Published
- Mar 10, 2017
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 8 minutes ago –
Tools for package owners.