utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProxyStream

func ProxyStream(r io.ReadWriter, w io.ReadWriter) error

ProxyStream swap byte

func ProxyStreamBuf

func ProxyStreamBuf(r1 io.Reader, w1 io.Writer, r2 io.Reader, w2 io.Writer) error

ProxyStreamBuf swap byte

func SHA224String

func SHA224String(password string) string

SHA224String sha

func SplitPathAndFile added in v0.2.0

func SplitPathAndFile(s string) (string, string, error)

SplitPathAndFile sha

Types

type SErr added in v0.1.1

type SErr struct {
	Msg  string
	Pc   uintptr
	File string
	Line int
}

SErr for trace err

func BaseErr

func BaseErr(msg string, e error) *SErr

BaseErr new err

func BaseErrf

func BaseErrf(msg string, e error, v ...interface{}) *SErr

BaseErrf new err formate

func Err added in v0.2.0

func Err(e error) *SErr

func NewErr

func NewErr(msg string) *SErr

NewErr for trace

func NewErrf

func NewErrf(msg string, v ...interface{}) *SErr

NewErrf for trace

func (*SErr) Base added in v0.1.1

func (e *SErr) Base(err error) *SErr

Base trace err

func (*SErr) Error added in v0.1.1

func (e *SErr) Error() string

Jump to

Keyboard shortcuts

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