]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/mitchellh/copystructure/copier_time.go
Transfer of provider code
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / mitchellh / copystructure / copier_time.go
CommitLineData
bae9f6d2
JC
1package copystructure
2
3import (
4 "reflect"
5 "time"
6)
7
8func init() {
9 Copiers[reflect.TypeOf(time.Time{})] = timeCopier
10}
11
12func timeCopier(v interface{}) (interface{}, error) {
13 // Just... copy it.
14 return v.(time.Time), nil
15}