When I use the dateparse.ParseFormat() function to process the timestamp, I expect it to return error, but instead of returning an error, it returns the layout as the timestamp itself, which seems very confusing. Maybe returning an error would be more appropriate?
func main() {
layout, err := dateparse.ParseFormat("1744709364")
if err != nil {
fmt.Println(err)
return
}
// output: 1744709364
fmt.Println(layout)
}