langx

package
v0.0.0-...-d00ae73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

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:

func InArray

func InArray(val interface{}, array interface{}) (exists bool, index int)

func IntIn

func IntIn(src int, to []int) bool

IntIn implement python in operator

func Must

func Must(fn func() (interface{}, error)) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL