Programming Code Center(PCC)
[GO]

(PCC)::[How-to-use-panic-throughout-to-check-for-unexpected-errors-in-go-language]::[go]

File Name : panic.go

package main

import "os"

func main() {

    panic("a problem")

    _, err := os.Create("/tmp/file")
    if err != nil {
        panic(err)
    }
}

Output :

panic.jpg