// ========================================================================== // $Id: panictoy.go,v 1.1 2014/03/31 21:34:24 jlang Exp $ // CSI2120 GO: Panic toy example // ========================================================================== // (C)opyright: // // Jochen Lang // EECS, University of Ottawa // 800 King Edward Ave. // Ottawa, On., K1N 6N5 // Canada. // http://www.eecs.uottawa.ca // // Creator: Jochen Lang (based on example by R. Laganiere) // Email: jlang@eecs.uottawa.ca // ========================================================================== // $Log: panictoy.go,v $ // Revision 1.1 2014/03/31 21:34:24 jlang // "Added examples for file I/O, methods, interfaces" // // ========================================================================== package main import "fmt" func main() { defer fmt.Println("Last Output") fmt.Println("Before Panic" ) panic("Out of here") fmt.Println("After Panic") }