add chapter 4
This commit is contained in:
14
chapter4/hi/main.go
Normal file
14
chapter4/hi/main.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"golang-book/head-first-go/chapter4/greeting"
|
||||
)
|
||||
|
||||
func main() {
|
||||
greeting.Hello()
|
||||
greeting.Hi()
|
||||
|
||||
slc := []string{"hello", "world"}
|
||||
fmt.Printf("%s %T %T", slc[0], slc, true)
|
||||
}
|
||||
Reference in New Issue
Block a user