utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntArrayContains

func IntArrayContains(values []int, i int) bool

IntArrayContains checks is given int exists in any of the provided values.

func MergeUrl

func MergeUrl(prefixUrl string, url string, isRedirect bool) (*urlPkg.URL, error)

MergeUrl computes the actual request url by combining prefixUrl and url. If both prefixUrl and url are absolute, gotcha will assume url to be the resulting url when isRedirect is true. When isRedirect is false, gotcha will assume prefixUrl to be the root url that needs to be merged.

func StringArrayContains

func StringArrayContains(values []string, str string) bool

StringArrayContains checks is given string contains any of the provided values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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