mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 14:58:46 +00:00
* chore(deps): sprig 3.1.0 Signed-off-by: Rui Chen <rui@meetup.com> * go mod vendor Signed-off-by: Rui Chen <rui@meetup.com>
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
|
|
}
|