7a4eda156c
This also removes `godep` calls from make scripts. Of note is that currently `./...` checking in acceptance tests is disabled.
16 lines
226 B
Go
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
|
|
}
|