1. 程式人生 > >Go-missing return at end of function

Go-missing return at end of function

where 執行 miss 返回函數 參數 font strong -m 程序

where?

  Go程序中函數在執行的時候

why?

  函數有返回參數,但是函數沒有return關鍵字,報錯

way?

  添加return返回函數需要返回的參數

Go-missing return at end of function