utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSuffix

func EnsureSuffix(value string, suffix string) string

EnsureSuffix makes sure a string ends with a given suffix.

func IsValidURL

func IsValidURL(toTest string) bool

IsValidURL checks if a given string is a valid URL.

func RemovePrefix

func RemovePrefix(value string, prefix string) string

RemovePrefix strips a prefix from a string if it exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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