mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Update opentelemetry collector to v0.40.0 Signed-off-by: Miguel Sacristán Izcue <[email protected]> * Remove deprecated function and run `make vendor-check` Signed-off-by: Miguel Sacristán Izcue <[email protected]>
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
|
|
}
|