mirror of
https://github.com/araddon/dateparse.git
synced 2025-10-03 02:32:01 +08:00
doc update
This commit is contained in:
@@ -88,11 +88,7 @@ func main() {
|
||||
|
||||
table.AddHeaders("Input", "Parsed, and Output as %v")
|
||||
for _, dateExample := range examples {
|
||||
t, err := dateparse.ParseAny(dateExample)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
table.AddRow(dateExample, fmt.Sprintf("%v", t))
|
||||
table.AddRow(dateExample, fmt.Sprintf("%v", dateparse.MustParse(dateExample)))
|
||||
}
|
||||
fmt.Println(table.Render())
|
||||
}
|
||||
|
Reference in New Issue
Block a user