util

package module
v0.0.0-...-b758e09 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 3 Imported by: 0

README

Utils

This module contains utility examples for golang

Utilities

  • Generate OTP for any length
  • Get LCM of given numbers array
  • Get GCD of given numbers

Example

Find a working example of Utils-reusable at Example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCD

func GCD(a, b int) int

Find GCD(greatest common divisor) of given numbers

func GenerateOTP

func GenerateOTP(length int) (string, error)

func LCM

func LCM(list []int) int

Find LCM(Least Common Multiple) of the list

Types

This section is empty.

Jump to

Keyboard shortcuts

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