utils

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 7 Imported by: 0

README

utils-go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumbersRegex = regexp.MustCompile("^[0-9]+$")
)

Functions

func ArrayContainsString

func ArrayContainsString(arr *[]string, str string) bool

Checks if an string array contains a given string and returns true if it is present

func ArrayContainsUint64

func ArrayContainsUint64(arr *[]uint64, value uint64) bool

func CheckPasswordSafety

func CheckPasswordSafety(s string, minLengh, maxLenght uint8) bool

func FindSubstringOcurrences

func FindSubstringOcurrences(text, substring string) ([]int, error)

func IsEmailValid

func IsEmailValid(e string) bool

IsEmailValid checks if a mail is valid

func IsNil

func IsNil(i interface{}) bool

func RemoveDiacritics

func RemoveDiacritics(s string) *string

func ToJson

func ToJson(n interface{}) (string, bool)

Types

This section is empty.

Directories

Path Synopsis
Package log implements a simple logging package.
Package log implements a simple logging package.

Jump to

Keyboard shortcuts

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