daily pastebin goal
36%
SHARE
TWEET

[Go] Print out error messages.

cwchen Oct 28th, 2017 185 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. import (
  4.     "errors"
  5.     "fmt"
  6. )
  7.  
  8. func main() {
  9.     err := errors.New("Some error")
  10.     if err != nil {
  11.         fmt.Println(err)
  12.     }
  13.  
  14.     fmt.Println("More message")
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top