mirror of
https://github.com/drone-plugins/drone-webhook.git
synced 2026-06-04 18:24:05 +08:00
69b094965b
This commit is doing a general refactoring of the current code base and it also integrates the new plugin lib.
13 lines
177 B
Go
13 lines
177 B
Go
package main
|
|
|
|
// intInSlice checks if int is in slice of ints
|
|
func intInSlice(s []int, e int) bool {
|
|
for _, a := range s {
|
|
if a == e {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|