match

package module
v0.0.0-...-638c1a6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 3 Imported by: 0

README



Match

Matching the most common expressions



Installation

go get github.com/bashery/match

Usage

import (
    "github.com/bashery/match"
)

func main() {

    match.IsDate("Jan 9th 2012") // true

    match.IsTime("5:00PM") // true

    match.IsLink("www.linkedin.com") // true

    match.IsEmails("adams@email.com") // true
}

Todo

  • Email
  • Date
  • Time
  • Phone
  • Phone with exts
  • Link
  • IPv4
  • IPv6
  • IP
  • Port without well-known (not known port)
  • Pric
  • Hex color
  • Credit card
  • VISA credit card
  • MC credit card
  • ISBN 10/13
  • BTC address
  • Street address
  • Zip code
  • Po box
  • SSN
  • MD5
  • SHA1
  • SHA256
  • GUID
  • MAC address
  • IBAN
  • Git Repository

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmail

func IsEmail(str string) bool

IsEmail return true if email is valid

func IsTime

func IsTime(str string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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