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: enum.go
    path of file: ./repos/amass/cmd/amass
    
    the code of the file until where you have to start completion: // Copyright Â© by Jeff Foley 2017-2023. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// SPDX-License-Identi
    
func printOutput(e *enum.Enumeration, args *enumArgs, output chan string, wg *sync.WaitGroup) {
	defer wg.Done()

	var total int
	// Print all the output returned by the enumeration
	for out := range output {
		fmt.Fprintf(color.Output, "%s\n", out)
		total++
	}

	if total == 0 {
		r.Println("No assets were discovered")
	}
}