Passed
Push — main ( 28f2b8...276220 )
by Rafael
01:14
created

base/base.go   A

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A base.init 0 4 1
1
package base
2
3
import (
4
	"os"
5
	"path/filepath"
6
)
7
8
var (
9
	HomeDir string
10
)
11
12
func init() {
13
	dir, _ := os.UserHomeDir()
14
	HomeDir = filepath.Join(dir, ".hsexplorer")
15
	os.MkdirAll(HomeDir, 0600)
16
}
17