terraform-provider-gitea/vendor/github.com/mitchellh/copystructure/copier_time.go
Malar Invention 00ebcd295e add vendor
2022-04-03 09:37:16 +05:30

16 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
}