# 07.08-問題

* `sum` 函式可以取得一個 slice 的數字，並且將這些數字加總。在 Go 語言中，它的函式特徵值（function signature）看起來像什麼呢？
* 設計一個函式，傳遞一個整數型別的數值給它，讓它將這個整數除以二（平分），若結果是偶數則傳回 true，若結果是奇數則傳回 false。例如：`half(1)` 應該要傳回 `(0, false)` 而 `half(2)` 則應該傳回 `(1, true)`。
* 設計一個函式，參數的個數是可變的，並找出這串輸入的參數值之最大值。
* 以 `makeEvenGenerator` 為例，設計一個 `makeOddGenerator` 函式，用以產生奇數。
* 費伯納數列（Fibonacci sequence）的定義是：`fib(0) = 0`, `fib(1) = 1`, `fib(n) = fib(n-1) + fib(n-2)`，請設計一個遞迴函式來取得 `fib(n)`。
* 何謂 defer、panic 及 recover？你要如何從一個執行期的 panic 中進行 recover 呢？


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://go.netdpi.net/functions/07.08-wen-ti.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
