Unify Godoc formatting, fix various typos
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
This commit is contained in:
@@ -16,8 +16,6 @@ limitations under the License.
|
||||
|
||||
package watch
|
||||
|
||||
import ()
|
||||
|
||||
// FilterFunc should take an event, possibly modify it in some way, and return
|
||||
// the modified event. If the event should be ignored, then return keep=false.
|
||||
type FilterFunc func(in Event) (out Event, keep bool)
|
||||
|
@@ -73,7 +73,7 @@ func (sw *StreamWatcher) Stop() {
|
||||
}
|
||||
}
|
||||
|
||||
// In a loop, read a result from the decoder and send down the result channel.
|
||||
// receive reads result from the decoder in a loop and sends down the result channel.
|
||||
func (sw *StreamWatcher) receive() {
|
||||
defer close(sw.result)
|
||||
defer sw.Stop()
|
||||
|
Reference in New Issue
Block a user