traefik/vendor/github.com/mitchellh/copystructure/copier_time.go
Ludovic Fernandez 5cc49e2931 bug command.
2017-10-02 10:32:02 +02:00

15 lines
226 B
Go

package copystructure
import (
"reflect"
"time"
)
func init() {
Copiers[reflect.TypeOf(time.Time{})] = timeCopier
}
func timeCopier(v interface{}) (interface{}, error) {
// Just... copy it.
return v.(time.Time), nil
}