wechaty/go-wechaty

View on GitHub
wechaty-puppet/helper/array.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package helper

type ArrayInt []int

func (a ArrayInt) InArray(i int) bool {
    for _, v := range a {
        if v == i {
            return true
        }
    }
    return false
}