Get Current Time in Go

Posted by yhuang
Public (Editable by Users)
Go
Edit
package main

import (
    "fmt"
    "time"
)

func main() {

    now := time.Now()
    fmt.Println(now)
}