ParseDateString takes a string and passes it through Approxidate Parses into a time.Time
(dt string)
| 88 | // ParseDateString takes a string and passes it through Approxidate |
| 89 | // Parses into a time.Time |
| 90 | func ParseDateString(dt string) (time.Time, error) { |
| 91 | |
| 92 | const layout = "Mon, 02-Jan-2006 15:04:05 MST" |
| 93 | fmt.Println(layout, dt, "end") |
| 94 | return time.Parse(layout, dt) |
| 95 | } |
| 96 | |
| 97 | func main() { |
| 98 |
no outgoing calls
no test coverage detected
searching dependent graphs…