Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstResult ¶
func FirstResult(function interface{}, args ...interface{}) interface{}
get one result from multi result function example:
func TestFunc() (string,string){ return "a","b" }
func ExampleFirstResult(){ FirstResult(TestFunc) }
Output:
a
Example ¶
fmt.Println(FirstResult(Abc))
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.