(path string)
| 147 | } |
| 148 | |
| 149 | func fileBaseName(path string) string { |
| 150 | name := "" |
| 151 | if len(path) > 0 { |
| 152 | _, fname := filepath.Split(path) |
| 153 | if len(fname) > 0 && fname[0] != '.' { |
| 154 | name = fname |
| 155 | } |
| 156 | } |
| 157 | return name |
| 158 | } |
| 159 | |
| 160 | func fixLog(s string) string { |
| 161 | return strings.Replace(strings.Replace(s, "\n", "", -1), "\r", "", -1) |
no outgoing calls