mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			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
 | 
						|
}
 |