File: discard.go

package info (click to toggle)
golang-github-go-openapi-validate 0.0~git20160704.0.deaf2c9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,604 kB
  • ctags: 863
  • sloc: sh: 16; 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 })