Files
Tete17andGitHub c492127fe9 Update opentelemetry collector to v0.40.0 (#1142)
* 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]>
2021-12-06 08:39:30 -05:00

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
}