github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/internal/value/cast.go (about)

     1  package value
     2  
     3  func CastTo(v Value, dst interface{}) error {
     4  	if dst == nil {
     5  		return errNilDestination
     6  	}
     7  	if ptr, has := dst.(*Value); has {
     8  		*ptr = v
     9  
    10  		return nil
    11  	}
    12  
    13  	return v.castTo(dst)
    14  }