Error

假設某個 func 會回傳 error,可以用如下印 error

	err := http.ListenAndServe("8090", nil);
	if err != nil {
		log.Fatal(err)
	}

或是

一般 log

自定義

其他可參見 panic, recover

Last updated

Was this helpful?