当缓存条件状态码为206时,自动支持区间缓存

This commit is contained in:
刘祥超
2022-03-04 17:00:37 +08:00
parent 1d681d5029
commit 757d316a53
2 changed files with 27 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import (
"reflect"
)
// 拷贝同类型struct指针对象中的字段
// CopyStructObject 拷贝同类型struct指针对象中的字段
func CopyStructObject(destPtr, sourcePtr interface{}) {
value := reflect.ValueOf(destPtr)
value2 := reflect.ValueOf(sourcePtr)