Comment on Go2ErrorHandlingFeedback
I like draft design
handle err {
return fmt.Errorf("copy %s %s: %v", src, dst, err)
}
r := check some_func()| package main | |
| import ( | |
| "log" | |
| "runtime" | |
| "time" | |
| ) | |
| func example1() { | |
| //this example locks all threads |
| ... | |
| public static class RunWhenShuttingDown extends Thread { | |
| public void run() { | |
| if (perfect.test()) { | |
| co.println("Shutting down...\n\n\n"); | |
| co.println("solution is here,\n"); | |
| co.println("The end is near,"); | |
| co.println("there is no fear,"); | |
| try { |
Comment on Go2ErrorHandlingFeedback
I like draft design
handle err {
return fmt.Errorf("copy %s %s: %v", src, dst, err)
}
r := check some_func()