在 golang 函数文档中,函数的返回值可以使用以下语法表示:func foo() (output1 type1, output2 type2, ..., outputn typen),其中 foo 是函数名称,output1 到 outputn 是返回值,type1 到 typen 是返回值的类型。
GoLang 函数文档中如何表示函数的返回值?
在 GoLang 函数文档中,我们可以使用以下语法来表示函数的返回值:
func Foo() (output1 type1, output2 type2, ..., outputN typeN)