package main import ( "flag" "fmt" "time" ) func main() { timex := flag.Duration("t",4*time.Second,"kek") flag.Parse() fmt.Println(timex) }