(path string)
| 191 | } |
| 192 | |
| 193 | func ReadFullFile(path string) []byte { |
| 194 | file, err := os.Open(path) |
| 195 | if err != nil { |
| 196 | return []byte("") |
| 197 | } |
| 198 | defer file.Close() |
| 199 | content, err := ioutil.ReadAll(file) |
| 200 | if err != nil { |
| 201 | return []byte("") |
| 202 | } |
| 203 | return content |
| 204 | } |
| 205 | |
| 206 | // File copies a single file from src to dst |
| 207 | func CopyFile(src, dst, style string) error { |