utils

package
v0.0.0-...-6c31ca2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNum2Words

func ConvertNum2Words(num int) string

func FoundCommonItems

func FoundCommonItems(a []string, b []string)

func PercentageChange

func PercentageChange(old, new int) (delta float64)

func SecondsToMinutes

func SecondsToMinutes(inSeconds int) string

****** TIME CONVERSION ********

Types

type Celsius

type Celsius float64
const (
	// standard stuff from Physics
	// useful for triggering alarms or sequence of actions
	// to adjust temperature
	WaterBoilingPoint  Celsius = 100
	WaterFreezingPoint Celsius = 0
	AbsoluteZero       Celsius = -273.15
)

func FahrenheitToCelsius

func FahrenheitToCelsius(f Fahrenheit) Celsius

func KelvinToCelsius

func KelvinToCelsius(k Kelvin) Celsius

type Fahrenheit

type Fahrenheit float64

func CelsiusToFahrenheit

func CelsiusToFahrenheit(c Celsius) Fahrenheit

****** TEMPERATURES CONVERSION ********

type Kelvin

type Kelvin float64

func CelsiusToKelvin

func CelsiusToKelvin(c Celsius) Kelvin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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