(b []byte, length int)
| 2222 | } |
| 2223 | |
| 2224 | func trunc(b []byte, length int) []byte { |
| 2225 | if length < len(b) { |
| 2226 | return b[:length] |
| 2227 | } |
| 2228 | return b |
| 2229 | } |
| 2230 | |
| 2231 | func fileSize(path string) int64 { |
| 2232 | fi, err := os.Stat(path) |
no outgoing calls
no test coverage detected