Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package utils |
||
2 | |||
3 | import ( |
||
4 | "io/ioutil" |
||
5 | "log" |
||
6 | ) |
||
7 | |||
8 | func GetFileContent(filePath string) []byte { |
||
9 | content, err := ioutil.ReadFile(filePath) |
||
10 | |||
11 | if err != nil { |
||
12 | log.Fatal(err) |
||
13 | } |
||
14 | |||
15 | return content |
||
16 | } |
||
17 |