yr

package
v0.0.0-...-b1959bb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AverageT

func AverageT(filename string) float64

The function reads a file that contains weather data, and returns the average temperature

func CelsiusToFahrenheitLine

func CelsiusToFahrenheitLine(line string) (string, error)

The function takes a string as input and assumes that it contains four elements seperated by ";", it converts the fourth element using the function declared earlier. It retruns the modified input string with the fourth element converted to fahrenheit

func CelsiusToFahrenheitString

func CelsiusToFahrenheitString(celsius string) (string, error)

Takes a celsius string as input, converts it to fahrenheit using the conv package, and retursn the Fahr temperature in string format

Types

This section is empty.

Jump to

Keyboard shortcuts

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