Value returns the current error value
()
| 770 | |
| 771 | // Value returns the current error value |
| 772 | func (ae *atomicError) Value() error { |
| 773 | if v := ae.value.Load(); v != nil { |
| 774 | // this will panic if the value doesn't implement the error interface |
| 775 | return v.(error) |
| 776 | } |
| 777 | return nil |
| 778 | } |
| 779 | |
| 780 | func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) { |
| 781 | dargs := make([]driver.Value, len(named)) |
no outgoing calls