github.com/exercism/v2-configlet@v3.9.2+incompatible/ui/printer_example_test.go (about)

     1  package ui
     2  
     3  import "os"
     4  
     5  func ExamplePrint() {
     6  	Out = os.Stdout
     7  	Print("this is a message")
     8  	// Output:
     9  	// -> this is a message
    10  }
    11  
    12  func ExamplePrintError() {
    13  	ErrOut = os.Stdout
    14  	PrintError("this is an error")
    15  	// Output:
    16  	// -> this is an error
    17  }