osutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package osutil implements operating system-related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(code int)

Exit calls os.Exit

func HandleInterrupts

func HandleInterrupts(*zap.Logger)

HandleInterrupts is a no-op on windows

func RegisterInterruptHandler

func RegisterInterruptHandler(h InterruptHandler)

RegisterInterruptHandler is a no-op on windows

func Unsetenv

func Unsetenv(key string) error

Types

type InterruptHandler

type InterruptHandler func()

Jump to

Keyboard shortcuts

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