shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ Data & Persistence/ File Formats/ Csvimport
Go Package

csvimport

CSV import engine — batch parsing, validation, and typed row mapping

Go Ready MD
CSV Import Progress
$ result, err := csvimport.Import(file, &PropertyMapper{})
[csv] reading: properties-export.csv
[csv] columns: id, name, address, price, status
[csv] batch 1/4 — rows 1-250 parsed
[csv] batch 2/4 — rows 251-500 parsed
[csv] batch 3/4 — rows 501-750 parsed
[csv] batch 4/4 — rows 751-983 parsed
[csv] complete — 983 rows, 971 valid, 12 errors
[csv] errors: row 42 (price: negative), row 119 (status: unknown)...

About

Parses CSV files in configurable batch sizes with per-row validation and typed struct mapping. Reports progress, collects validation errors per row, and supports custom column-to-field mappers for non-standard CSV layouts.

Public API

NameKindSignature
Importfuncfunc Import[T any](r io.Reader, mapper RowMapper[T], opts ...Option) (*Result[T], error)
Readertypetype Reader struct
RowMapperinterfacetype RowMapper[T any] interface
ValidationErrortypetype ValidationError struct

Related Packages

config Go Ready

YAML configuration reader — typed config loading with environment overlay

yamlconfigurationenvironmenttyped-config
4 exports 4 deps

Source

github.com/shredbx/sbx-core/pkg/csvimport
csvimportbatch-processingvalidation
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |