sfregexp

package
Version: v0.0.0-...-5b7235d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegexpDict = map[string]*regexp.Regexp{
	"siret":    regexp.MustCompile("^[0-9]{14}$"),
	"siren":    regexp.MustCompile("^[0-9]{9}$"),
	"notDigit": regexp.MustCompile("[^0-9]"),
}

RegexpDict fournit des expressions régulières communes.

Functions

func ValidSiren

func ValidSiren(siren string) bool

ValidSiren retourne `true` si le numéro SIREN est valide.

func ValidSiret

func ValidSiret(siret string) bool

ValidSiret retourne `true` si le numéro SIRET est valide.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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