Skip to content

Instantly share code, notes, and snippets.

@Adron
Created February 6, 2019 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adron/ab76c8e797d56be908c3469ad8151d0f to your computer and use it in GitHub Desktop.
Save Adron/ab76c8e797d56be908c3469ad8151d0f to your computer and use it in GitHub Desktop.
Using the Temperature Package
package main
import (
"fmt"
tempconv "github.com/Adron/awesomeProject/tempconv"
)
func main() {
fmt.Println("Temperatures are hard to figure off the top of one's mind!")
boilingF := tempconv.CelsiusToFahrenheit(BoilingC)
fmt.Printf("%v\n", boilingF)
fmt.Printf("%s\n", boilingF)
fmt.Println(boilingF)
fmt.Printf("%g\n", boilingF)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment