...

Source file src/github.com/launchdarkly/go-jsonstream/v3/jwriter/no_op_writer.go

Documentation: github.com/launchdarkly/go-jsonstream/v3/jwriter

     1  package jwriter
     2  
     3  var noOpWriter = makeNoOpWriter() //nolint:gochecknoglobals
     4  
     5  func makeNoOpWriter() Writer {
     6  	w := Writer{}
     7  	w.AddError(noOpWriterError{})
     8  	return w
     9  }
    10  
    11  type noOpWriterError struct{}
    12  
    13  func (noOpWriterError) Error() string {
    14  	return "this is a stub Writer that produces no output"
    15  }
    16  

View as plain text