We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f68080 commit 824aa71Copy full SHA for 824aa71
reader.go
@@ -626,6 +626,9 @@ type readerStats struct {
626
627
// NewReader creates and returns a new Reader configured with config.
628
// The offset is initialized to FirstOffset.
629
+//
630
+// This function will panic if the [ReaderConfig] argument is invalid.
631
+// Consider calling [ReaderConfig.Validate] before to make sure your config is valid.
632
func NewReader(config ReaderConfig) *Reader {
633
if err := config.Validate(); err != nil {
634
panic(err)
0 commit comments