請問這題我該如何用Golang去實現
Please implement a pipe function in a language that you are good at. The function parameter is of indefinite length, the first parameter is a variable of any type, and the following parameter is the function pointer. Please attach unit test.
**
e.g.
def increment (int value) {
return value + 1
}
pipe(5, increment) => 6, pipe(5, increment, increment, increment) => 8
**
Online Palyground