Init commit
This commit is contained in:
13
chapter2/time.go
Normal file
13
chapter2/time.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var now time.Time = time.Now()
|
||||
var year int = now.Year()
|
||||
fmt.Println(year)
|
||||
fmt.Println(now)
|
||||
}
|
||||
Reference in New Issue
Block a user