Skip to content

Instantly share code, notes, and snippets.

@go-ive
Created September 26, 2013 21:01
Show Gist options
  • Save go-ive/6720503 to your computer and use it in GitHub Desktop.
Save go-ive/6720503 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"flag"
)
func main(){
tempMorning := flag.Int("morning", 60, "Temperature in the morning.")
tempAfternoon := flag.Int("afternoon", 75, "Temperature in the afternoon.")
flag.Parse()
if *tempAfternoon > 75 && *tempMorning < 60 {
fmt.Println("It is fall.")
} else {
fmt.Println("It is some other season.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment