(file string)
| 39 | ) |
| 40 | |
| 41 | func chkStat(file string) error { |
| 42 | d, err := os.Stat(file) |
| 43 | if err != nil { |
| 44 | return err |
| 45 | } |
| 46 | if d.IsDir() { |
| 47 | return os.ErrPermission |
| 48 | } |
| 49 | return nil |
| 50 | } |
| 51 | |
| 52 | func hasExt(file string) bool { |
| 53 | i := strings.LastIndex(file, ".") |
no outgoing calls
no test coverage detected
searching dependent graphs…