util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(birthDate time.Time) int

Age is shorthand for AgeAt(birthDate, time.Now()), and carries the same usage and limitations.

func AgeAt

func AgeAt(birthDate time.Time, now time.Time) int

AgeAt gets the age of an entity at a certain time.

func UniqueNonEmptyElementsOf

func UniqueNonEmptyElementsOf(s []int) []int

Types

This section is empty.

Jump to

Keyboard shortcuts

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