util

package
v0.0.0-...-a915469 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(stack []string, needle string) bool

ContainsString will return true if a string is found in a given group of strings.

func IsValidMatrixServerName

func IsValidMatrixServerName(name string) bool

func ParseServerName

func ParseServerName(name string) (string, int, error)

func RandString

func RandString(n int) string

RandString creates a random string of requested length.

Types

type ErrorCollector

type ErrorCollector struct {
	// contains filtered or unexported fields
}

ErrorCollector collects errors.

func (*ErrorCollector) Append

func (e *ErrorCollector) Append(err error)

func (*ErrorCollector) Error

func (e *ErrorCollector) Error() error

func (*ErrorCollector) Length

func (e *ErrorCollector) Length() int

Jump to

Keyboard shortcuts

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