utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(dst io.Writer, src io.Reader, limiter *rate.Limiter) chan int

Bind 对writer和reader进行绑定 返回一个通道,无错误完成时向通道输入0,发生错误时向通道输入1

func Copy

func Copy(writer io.Writer, reader io.Reader, limiter *rate.Limiter) (written int64, err error)

Copy 替代io.Copy,支持速率限制

func EncryptPassword

func EncryptPassword(password string) string

EncryptPassword 计算加密后的密码

func FileExists

func FileExists(filepath string) (bool, error)

FileExists 检查文件路径是否存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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