bitbucket.org/ai69/amoy@v0.2.3/console.go (about)

     1  package amoy
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  )
     7  
     8  // Eprintf likes fmt.Printf but use stderr as the output.
     9  func Eprintf(format string, a ...interface{}) (n int, err error) {
    10  	return fmt.Fprintf(os.Stderr, format, a...)
    11  }
    12  
    13  // Eprint likes fmt.Print but use stderr as the output.
    14  func Eprint(a ...interface{}) (n int, err error) {
    15  	return fmt.Fprint(os.Stderr, a...)
    16  }
    17  
    18  // Eprintln likes fmt.Println but use stderr as the output.
    19  func Eprintln(a ...interface{}) (n int, err error) {
    20  	return fmt.Fprintln(os.Stderr, a...)
    21  }