utils

package
v0.0.0-...-02249b2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBrazilianCPFValid

func IsBrazilianCPFValid(n string) bool

IsBrazilianCPFValid checks if a CPF is valid

func IsUnderage

func IsUnderage(birthdate time.Time) bool

IsUnderage is a helper to check if user is underage

func SanitizeUpdateParams

func SanitizeUpdateParams(u interface{}) (map[string]interface{}, error)

func TimeBetween

func TimeBetween(a, b time.Time) (year, month, day, hour, min, sec int)

TimeBetween calculates the time between two dates

Types

This section is empty.

Jump to

Keyboard shortcuts

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