github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/clone/slice.go (about)

     1  package clone
     2  
     3  func Int64Slice(src []int64) []int64 {
     4  	if src == nil {
     5  		return nil
     6  	}
     7  
     8  	dst := make([]int64, len(src))
     9  	copy(dst, src)
    10  
    11  	return dst
    12  }