Versions in this module Expand all Collapse all v0 v0.0.2 Mar 18, 2022 v0.0.1 Mar 18, 2022 Changes in this version + var CancelError = errors.New("CancelError") + var SilentError = errors.New("SilentError") + func ArchiveAndCompressFiles(files []*os.File) (*os.File, int64, error) + func ByteCountSI(b int64) string + func Contains(s []string, str string) bool + func DecodePayload(payload interface{}, target interface{}) (err error) + func DecompressAndUnarchiveBytes(reader io.Reader) ([]string, int64, error) + func DisplayWidth(s string) int + func FilesTotalSize(files []*os.File) (int64, error) + func GeneratePassword(id int) models.Password + func GetOpenPort() (int, error) + func HashPassword(password models.Password) string + func Indent(s, indent string) string + func IsUserCancellation(err error) bool + func MutuallyExclusive(message string, conditions ...bool) error + func ParsePassword(passStr string) (models.Password, error) + func PrintError(out io.Writer, err error, cmd *cobra.Command, debug bool) + func RandomSeed() + func ReadEncryptedMessage(wsConn *websocket.Conn, crypt *crypt.Crypt) (protocol.TransferMessage, error) + func ReadFiles(fileNames []string) ([]*os.File, error) + func ReadTranxMessage(wsConn *websocket.Conn, expected protocol.TranxMessageType) (protocol.TranxMessage, error) + func RemoveTemporaryFiles(prefix string) + func ReplaceExcessiveWhitespace(s string) string + func Truncate(maxWidth int, s string) string + func TruncateColumn(maxWidth int, s string) string + func ValidateHostname(name string) error + func WebsocketHandler(wsHandler WsHandlerFunc) http.HandlerFunc + func WriteEncryptedMessage(wsConn *websocket.Conn, msg protocol.TransferMessage, crypt *crypt.Crypt) error + type FlagError struct + Err error + func (fe FlagError) Error() string + func (fe FlagError) Unwrap() error + type WsHandlerFunc func(*websocket.Conn)