
The highest tagged major version is
v2.
package
Version:
v1.12.0
Opens a new window with list of versions in this module.
Published: Jul 30, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 36
Opens a new window with list of known importers.
Documentation
¶
type Stream[T any] struct {
}
func (s *Stream[T]) Current() T
Next returns false if the stream has ended or an error occurred.
Call Stream.Current() to get the current value.
Call Stream.Err() to get the error.
for stream.Next() {
data := stream.Current()
}
if stream.Err() != nil {
...
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.