| title | Common workflows |
|---|---|
| description | Find the relevant go-car v2 packages for reading, writing, indexing, and storage. |
Start in the v2 root package for CAR header inspection and sequential block
reading. Use the API search for NewBlockReader and inspect the source-derived
examples beside the related types.
The v2 root package contains writers and options for producing CAR data. Choose options deliberately: padding, index characteristics, and data layout affect interoperability and random access.
Use the index package to inspect available index codecs and construct or read
an index. The indexstore package connects index storage to higher-level
workflows.
Look under blockstore and storage in the v2 API. Their package docs and
examples explain the contracts for read-only, read-write, and random-access
use. Treat filesystem paths and external readers as caller-controlled resources
and close them according to the documented API contract.
Test with representative archives, including empty, partial, and large samples. Set application-level limits for file size, block count, memory use, and I/O time according to the workload being served.