terraformDummyRepo2/vendor/github.com/mitchellh/copystructure/copier_time.go

16 lines
226 B
Go
Raw Normal View History

2022-04-03 04:07:16 +00:00
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
}