mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-11-05 02:18:12 +00:00
15 lines
226 B
Go
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
|
|
}
|