添加1.2节的代码

This commit is contained in:
gelosie
2012-09-20 14:59:35 +08:00
parent 7aaa468d93
commit feb3465acc
3 changed files with 26 additions and 0 deletions

13
src/1.2/main.go Normal file
View File

@@ -0,0 +1,13 @@
// 章节 1.2
// $GOPATH/src/mathapp/main.go
package main
import (
"fmt"
"mymath"
)
func main() {
fmt.Printf("Hello, world. Sqrt(2) = %v\n", mymath.Sqrt(2))
}