util

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPhoneNumber added in v0.1.16

func FormatPhoneNumber(phone *string, countryCode *string) *string

FormatPhoneNumber formats a phone number using the nyaruka/phonenumbers library. If country code is provided, it will be used for parsing; otherwise, US is used as default region. Returns the formatted phone number in E.164 format, or the original phone if formatting fails.

func InAnySlice

func InAnySlice[T comparable](haystack []T, needle T) bool

func IsEmpty

func IsEmpty(value interface{}) bool

func RemoveDuplicates

func RemoveDuplicates[T comparable](haystack []T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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