package
2.9.0
Repository: https://github.com/cloudtrust/common-service.git
Documentation: pkg.go.dev

# Functions

AddLargeDuration adds a specified duration value to the given date.
AddLargeDurationE adds a specified duration value to the given date.
IsStringInSlice tells if a searched value is part of a slice or not.
IsValidLargeDuration tells whether a duration provided as a string is valid or not.
NewParameterValidator creates a validator ready to check multiple parameters.
ObfuscatePhoneNumber hides the middle part of a phone number It keeps the country code and the 2 last digits.
SubstractLargeDuration substracts a specified duration value from the given date.
SubstractLargeDurationE substracts a specified duration value from the given date.

# Constants

RegExpLargeDuration is a regular expression used to parse large durations LargeDuration is a duration in days, months, years..

# Interfaces

Validatable interface.
Validator interface.