osutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Overview

Package osutil implements some OS utility functions.

Index

Constants

View Source
const (
	DefaultFileMode os.FileMode = 0644
	DefaultDirMode  os.FileMode = 0755
)

Variables

This section is empty.

Functions

func CopyFile added in v1.2.0

func CopyFile(srcPath, destPath string) (int64, error)

CopyFile reads data from source file and writes to target file. If the target file already exists, it is overwritten.

func WaitForInterrupt

func WaitForInterrupt()

WaitForInterrupt blocks until current process receives SIGINT.

Types

This section is empty.

Jump to

Keyboard shortcuts

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