其中包括 error 、 panic 和 recover 。今天就來介紹這三個關鍵字與錯誤處理的簡單用法。 ... func divide(x, y int) (int, error) { if y == 0 {
確定! 回上一頁