面试题答案
一键面试package main
import (
"fmt"
"time"
)
func main() {
now := time.Now()
formattedTime := now.Format("2006 - 01 - 02 15:04:05")
fmt.Println(formattedTime)
}
package main
import (
"fmt"
"time"
)
func main() {
now := time.Now()
formattedTime := now.Format("2006 - 01 - 02 15:04:05")
fmt.Println(formattedTime)
}