strngs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package strngs contains methods to simplify a few string operations Like validate a specific format, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail checks if a string is a valid email We only check for anything@anything.anything

func IsValidSlug

func IsValidSlug(text string) bool

IsValidSlug returns True if provided text does not contain white characters, punctuation, all letters are lower case and only from ASCII range. It could contain `-` and `_` but not at the beginning or end of the text.

Taken from https://github.com/gosimple/slug/blob/e9f42fa127660e552d0ad2b589868d403a9be7c6/slug.go#L144 under Mozilla Public License

func IsValidURL

func IsValidURL(uri string) bool

IsValidURL checks if a string is a valid URL

func IsValidUUID

func IsValidUUID(uuid string) bool

IsValidUUID checks if a string is a valid UUID V4

Types

This section is empty.

Jump to

Keyboard shortcuts

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