bug command.

This commit is contained in:
Ludovic Fernandez 2017-10-02 10:32:02 +02:00 committed by Traefiker
parent b6752a2c02
commit 5cc49e2931
43 changed files with 2560 additions and 409 deletions

View file

@ -0,0 +1,15 @@
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
}