system

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StdErrorToFile

func StdErrorToFile(file *os.File) error

将os.Stderr写入文件 linux下真实效果是所有stderr输出的消息转移到了文件

Types

type NamedLock

type NamedLock struct {
	// contains filtered or unexported fields
}

进程锁

func (*NamedLock) Lock

func (l *NamedLock) Lock(name string) bool

进程锁,加锁

func (*NamedLock) Unlock

func (l *NamedLock) Unlock()

进程锁,解锁

Jump to

Keyboard shortcuts

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