You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: diagnostic_error_listener.go
    path of file: ./repos/kubeedge/vendor/github.com/antlr/antlr4/runtime/Go/antlr
    
    the code of the file until where you have to start completion: // Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
// Use of
    
func NewDiagnosticErrorListener(exactOnly bool) *DiagnosticErrorListener {

	n := new(DiagnosticErrorListener)

	// whether all ambiguities or only exact ambiguities are Reported.
	n.exactOnly = exactOnly
	return n
}