fsos

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Stdout 标准输出
	Stdout = 1

	// Stderr 标准错误输出
	Stderr = 2
)

Variables

This section is empty.

Functions

func HookStderr

func HookStderr(f fsfs.HasFd) error

HookStderr 劫持标准错误输出

当前程序的 stderr 的内容将输出指定的文件

func HookStdout

func HookStdout(f fsfs.HasFd) error

HookStdout 劫持标准输出

当前程序的 stdout 的内容将输出指定的文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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