// Import package import ( "fmt" "github.com/docker/docker/cli/command" ) // Display message to user func displayMessage() { command.DockerCli.Out("Hello, user!") } // Display diagnostic information func displayDiagnostic() { message := fmt.Sprintf("Error: %s", err) command.DockerCli.Out(message) }In the first example, the function `displayMessage()` uses the `DockerCli Out` function to display a friendly greeting to the user. In the second example, the `displayDiagnostic()` function uses the `DockerCli Out` function to display an error message along with the error details.