utils

package
v1.12.12-beta005 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStringKey added in v1.9.23

func CheckStringKey(m map[string]any, key string) error

func ContainsTag

func ContainsTag(tags []string, tag string) bool

func EscapeDots added in v1.12.12

func EscapeDots(source string) string

EscapeDots escapes dots for MongoDB fields

func GetStringKey added in v1.9.23

func GetStringKey(m map[string]any, key string) (string, error)

func RandAlphanum added in v1.6.11

func RandAlphanum(n int) string

func ReadLongLine added in v1.5.39

func ReadLongLine(r *bufio.Reader) (line []byte, err error)

ReadLongLine reads long line

func RemoveDuplicates added in v0.7.16

func RemoveDuplicates(s []string) []string

func RoundDuration added in v1.4.8

func RoundDuration(duration time.Duration, to ...time.Duration) time.Duration

RoundDuration rounds duration to default value if no round passed

func SanitizeName added in v1.10.32

func SanitizeName(path string) string

SanitizeName sanitizes test name

func UnescapeDots added in v1.12.12

func UnescapeDots(source string) string

UnescapeDots unescapes dots from MongoDB fields

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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