daily pastebin goal
18%
SHARE
TWEET

[Go] Print out error messages.

cwchen Oct 28th, 2017 132 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
Top