Created
September 22, 2010 20:44
-
-
Save gregworley/592528 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go/doc/GoCourseDay1.pdf Initialization example | |
package transcendental | |
import "math" | |
var Pi float64 | |
func init() { | |
Pi = 4 * math.Atan(1) //init() function computes Pi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Go
Programming Language
Part 1
Rob Pike
October 2009