(path string)
| 173 | } |
| 174 | |
| 175 | func (e *Engine) isIncludeExt(path string) bool { |
| 176 | ext := filepath.Ext(path) |
| 177 | for _, v := range e.config.Build.IncludeExt { |
| 178 | if strings.TrimSpace(v) == extWildcard { |
| 179 | // Wildcard matches all files, but exclude the binary file |
| 180 | return !e.isBinPath(path) |
| 181 | } |
| 182 | if ext == "."+strings.TrimSpace(v) { |
| 183 | return true |
| 184 | } |
| 185 | } |
| 186 | return false |
| 187 | } |
| 188 | |
| 189 | // isBinPath checks if the given path is the binary file path |
| 190 | func (e *Engine) isBinPath(path string) bool { |