Skip to content

Instantly share code, notes, and snippets.

@crufter
Created March 28, 2012 08:35
Show Gist options
  • Save crufter/2224761 to your computer and use it in GitHub Desktop.
Save crufter/2224761 to your computer and use it in GitHub Desktop.
package main
func wut( x int ) int {
if x % 2 == 0 {
return 1;
} else {
return 2;
}
}
func main() {
var y int = 0
for i:=0; i < 100000000; i++ {
y += wut( i )
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment