util

package
v0.0.0-...-3641ea5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInList

func IsInList(item string, l []string) bool

IsInList returns true if item is in list

func NewHTTPClient

func NewHTTPClient(timeout time.Duration, transport http.RoundTripper) *http.Client

NewHTTPClient creates a new instance of http.Client

func SanitizeString

func SanitizeString(s string) string

SanitizeString will remove the first occurrence of a slash in a string and replaces all special characters with underscores.

func UseTLSScheme

func UseTLSScheme(url string, use bool) (string, error)

UseTLSScheme returns url with https scheme if use is true

Types

This section is empty.

Jump to

Keyboard shortcuts

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