utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCompileRegexp

func MustCompileRegexp(regexpString string) regexp.Regexp

A utility function to be used in tests. It compiles regexpString as regexp.Regexp or panics if it's invalid.

func MustParseURL

func MustParseURL(urlString string) url.URL

A utility function to be used in tests. It parses urlString as url.URL or panics if it's invalid.

func RefInt

func RefInt(val int) *int

A utility function to be used in tests. It returns the address of the passed value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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