...

Source file src/github.com/go-openapi/runtime/discard.go

Documentation: github.com/go-openapi/runtime

     1  package runtime
     2  
     3  import "io"
     4  
     5  // DiscardConsumer does absolutely nothing, it's a black hole.
     6  var DiscardConsumer = ConsumerFunc(func(_ io.Reader, _ interface{}) error { return nil })
     7  
     8  // DiscardProducer does absolutely nothing, it's a black hole.
     9  var DiscardProducer = ProducerFunc(func(_ io.Writer, _ interface{}) error { return nil })
    10  

View as plain text