Passed
Pull Request — master (#6)
by Serhii
02:04
created

utils/get_file_content.go   A

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A utils.GetFileContent 0 8 2
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