Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
csvutil
✓ github.com/jszwec/csvutil
Unmarshal CSV data into a slice of structs.
package main
import (
"fmt"
"strings"
"github.com/jszwec/csvutil"
)
type User struct {
Name string `csv:"name"`
Age int `csv:"age"`
}
func main() {
data := "name,age\nJohn,30\nJane,25"
var users []User
csvutil.Unmarshal([]byte(data), &users)
fmt.Println(users)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.10.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.