1fe6da2ad6
Refs https://github.com/hashicorp/go-discover/pull/128 * deps: add replace directive for gocheck Transitive dep, source at https://launchpad.net/gocheck indicates project moved. This also avoids a dependency on bzr when fetching modules. Refs https://github.com/hashicorp/consul/pull/6818 * deps: make update-vendor * test: update retry-join expected names from go-discover
16 lines
233 B
Go
16 lines
233 B
Go
package linodego
|
|
|
|
import "time"
|
|
|
|
const (
|
|
dateLayout = "2006-01-02T15:04:05"
|
|
)
|
|
|
|
func parseDates(dateStr string) (*time.Time, error) {
|
|
d, err := time.Parse(dateLayout, dateStr)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &d, nil
|
|
}
|