index work

This commit is contained in:
Mark McGranaghan
2012-09-23 14:43:33 -07:00
parent 4fc6a1c9a7
commit 9ef3140839
7 changed files with 9 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
// ## Inline Assignment
package main
import "fmt"
func main() {
// `x := val` is shorthand for `var x type = val`.
x := "Hello assignment"
fmt.Println(x)
}

View File

@@ -0,0 +1,2 @@
$ go run inline-assignment.go
Hello assignment