Skip to content

Instantly share code, notes, and snippets.

@gregworley
Created September 22, 2010 20:40
Show Gist options
  • Save gregworley/592523 to your computer and use it in GitHub Desktop.
Save gregworley/592523 to your computer and use it in GitHub Desktop.
// go/doc/GoCourseDay1.pdf slide 62
package main
import (
"fmt"
"./transcendental"
)
var twoPi = 2 * transcendental.Pi //decl computes twoPi
func main() {
fmt.Printf("2*Pi = %g\n", twoPi)
}
@gregworley
Copy link
Author

The
Go
Programming Language
Part 1
Rob Pike
October 2009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment