Standard library / database/sql/driver
driver.IsValue()
Reports whether a value is an accepted driver value type. Expected stdout: 'true false\n'.
Formal Syntax & Structure
go syntaxgo
func IsValue(v any) boolParameters & Attributes
| Name | Type | Description |
|---|---|---|
| v | any | Input to the operation as described above. |
Return Value
bool
Reports whether a value is an accepted driver value type. Check returned errors where applicable.
Working Example
Example Snippetgo
package main
import ( "database/sql/driver" "fmt")
func main() { fmt.Println(driver.IsValue(int64(7)), driver.IsValue(struct{}{})) }