gitlab.com/Raven-IO/raven-delve@v1.22.4/_fixtures/out_redirect.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 ) 7 8 func main() { 9 fmt.Println("hello world!") 10 fmt.Fprintf(os.Stdout, "hello world!") 11 fmt.Fprintf(os.Stderr, "hello world!\n") 12 fmt.Fprintf(os.Stderr, "hello world! error!") 13 }