util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c io.Closer) error

Close 关闭指定的 closer

func IsEOF

func IsEOF(err error) bool

IsEOF 检查并判断 err 是否为 EOF

func PumpStream

func PumpStream(src io.Reader, dst io.Writer, buffer []byte) (int64, error)

PumpStream 把数据从 src 读出来,并写入到 dst. 返回成功写入的字节数.

Types

This section is empty.

Jump to

Keyboard shortcuts

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