Standard library / encoding/csv
encoding/csv.ErrQuote
Sentinel for a missing or extraneous quote in a quoted field; normally wrapped in ParseError. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
var ErrQuote errorWorking Example
Example Snippetgo
package main
import ( "encoding/csv" "errors" "fmt" "strings")
func must(e error) { if e != nil { panic(e) }}
func main() { r := csv.NewReader(strings.NewReader("\"abc\n")) _, e := r.Read() fmt.Println(errors.Is(e, csv.ErrQuote))}