util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSystemInTestMode

func IsSystemInTestMode() bool

IsSystemInTestMode checks if the system is running for tests.

func StrToURL

func StrToURL(defaultProtocol string, str string) (*url.URL, error)

StrToURL creates *url.URL from the given parameters. If the str does not have a Scheme segment then defaultProtocol parameter is used as a Scheme. Returns error if the given str is not a URL.

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice checks if the given string is in the given list of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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