stringutil

package
v0.0.0-...-9c44629 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PatternUrl = "^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)$"
)

Variables

View Source
var (
	CountryISO = map[string]string{}/* 249 elements not displayed */

)

Functions

func DifferDomainAndPath

func DifferDomainAndPath(left, right string) bool

func Format

func Format(fmt string, args map[string]interface{}) string

func GetCountryCodeByName

func GetCountryCodeByName(name string) string

func MutualString

func MutualString(source, destination string, length int) string

func Obfuscate

func Obfuscate(value string, size int) string

func TrimLeadingHead

func TrimLeadingHead(sa []string) []string

func UrlValidateString

func UrlValidateString(pattern string, s string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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