diff options
| author | Shulhan <ms@kilabit.info> | 2018-06-03 05:44:47 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-06-03 23:51:33 +0700 |
| commit | c48a8a43e70e7d14558e32296683a6092072a1ab (patch) | |
| tree | 51cdd4a918b6eb17f5cc14cc6690d6422d657ad4 | |
| parent | 1e310097a0340cafb56ef60c9b5f3075602a51f4 (diff) | |
| download | beku-c48a8a43e70e7d14558e32296683a6092072a1ab.tar.xz | |
env.IsExcluded(): use strings.Contains instead of equal operator
| -rw-r--r-- | env.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } } |
