File: discard.go

package info (click to toggle)
golang-github-go-openapi-runtime 0.28.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 1,060 kB
  • sloc: sh: 9; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
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 })