package main import ( "fmt" "runtime" ) func NotYetImplemented() error { pc, _, _, ok := runtime.Caller(1) if ok == false { panic("NotYetImplemented(): Could not determine my caller") } f := runtime.FuncForPC(pc) return fmt.Errorf("%s() is not yet implemented", f.Name()) }