aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-06-03 05:44:47 +0700
committerShulhan <ms@kilabit.info>2018-06-03 23:51:33 +0700
commitc48a8a43e70e7d14558e32296683a6092072a1ab (patch)
tree51cdd4a918b6eb17f5cc14cc6690d6422d657ad4
parent1e310097a0340cafb56ef60c9b5f3075602a51f4 (diff)
downloadbeku-c48a8a43e70e7d14558e32296683a6092072a1ab.tar.xz
env.IsExcluded(): use strings.Contains instead of equal operator
-rw-r--r--env.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.go b/env.go
index 93fe6ad..7a86d6e 100644
--- a/env.go
+++ b/env.go
@@ -317,7 +317,7 @@ func (env *Env) IsExcluded(importPath string) bool {
return true
}
for x := 0; x < len(env.pkgsExclude); x++ {
- if env.pkgsExclude[x] == importPath {
+ if strings.Contains(importPath, env.pkgsExclude[x]) {
return true
}
}