mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
d4b01a6c53
This removes some unused dependencies that I know we plan to re-add later, but this makes for a clean `godep save` for now.
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
|
|
}
|