utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 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

Types

type SErr added in v0.1.1

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

func BaseErr

func BaseErr(msg string, e error) *SErr

func BaseErrf

func BaseErrf(msg string, e error, v ...interface{}) *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

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