package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Sep 4, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
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.