Passed
Push — master ( 4dcc72...1f1bc8 )
by Serhii
03:39 queued 01:59
created

utils.GetFileContent   A

Complexity

Conditions 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 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