k3s/vendor/github.com/go-openapi/runtime/discard.go
Darren Shepherd 8031137b79 Update vendor
2019-08-30 23:08:05 -07:00

10 lines
337 B
Go

package runtime
import "io"
// DiscardConsumer does absolutely nothing, it's a black hole.
var DiscardConsumer = ConsumerFunc(func(_ io.Reader, _ interface{}) error { return nil })
// DiscardProducer does absolutely nothing, it's a black hole.
var DiscardProducer = ProducerFunc(func(_ io.Writer, _ interface{}) error { return nil })