Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ type readerStats struct {

// NewReader creates and returns a new Reader configured with config.
// The offset is initialized to FirstOffset.
//
// This function will panic if the [ReaderConfig] argument is invalid.
// Consider calling [ReaderConfig.Validate] before to make sure your config is valid.
func NewReader(config ReaderConfig) *Reader {
if err := config.Validate(); err != nil {
panic(err)
Expand Down