Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateAge ¶
CalculateAge calculates the age based on a given birthdate and the current date in the format dd/mm/yy It adjusts for cases where the current date is before the birthday in the current year.
func CalculateAgeWithYOB ¶
CalculateAgeWithYOB calculates the age based on the given year of birth (YOB). It subtracts the YOB from the current year to determine the age.
Parameters:
yob: The year of birth as an integer.
Returns:
The calculated age as an integer.
func ConstructName ¶
func IsValidISO639 ¶
func IsValidYOb ¶
IsValidYob checks if the provided yob can be considered valid
Types ¶
type AdminStore ¶
func NewAdminStore ¶
func NewAdminStore(ctx context.Context, fileName string) (*AdminStore, error)
Click to show internal directories.
Click to hide internal directories.