Sign in
apache
/
cloudstack-terraform-provider
/
3145bf1ea3779b92a0426a430018ee330fafae35
/
.
/
vendor
/
github.com
/
mitchellh
/
copystructure
/
copier_time.go
blob: db6a6aa1a1f4f41f0be92ed26b65d66e9547e51d [
file
] [
log
] [
blame
]
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
}