Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-04 18:44:54 +01:00
forgejo/vendor/github.com/go-openapi/runtime/discard.go

10 lines
337 B
Go
Raw Normal View History

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 })