Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Mackie committed Apr 21, 2015
0 parents commit 1105cac
Show file tree
Hide file tree
Showing 795 changed files with 239,485 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chapter1/helloworld.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello World")
}
18 changes: 18 additions & 0 deletions chapter1/starwars.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import "fmt"

func main() {
starWarsYears := map[string]int{
"A New Hope": 1977,
"The Empire Strikes Back": 1980,
"Return of the Jedi": 1983,
"Attack of the Clones": 2002,
"Revenge of the Sith": 2005,
}
starWarsYears["The Force Awakens"] = 2015

for title, year := range starWarsYears {
fmt.Println(title, "was released in", year)
}
}
Loading

0 comments on commit 1105cac

Please sign in to comment.