File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ import (
12
12
"strconv"
13
13
)
14
14
15
- func config_file () string {
16
- return filepath .Join (xdg_home_dir (), "gocode" , "config.json" )
17
- }
18
-
19
15
//-------------------------------------------------------------------------
20
16
// config
21
17
//
@@ -135,7 +131,7 @@ func (this *config) write() error {
135
131
}
136
132
137
133
// make sure config dir exists
138
- dir := filepath . Join ( xdg_home_dir (), "gocode" )
134
+ dir := config_dir ( )
139
135
if ! file_exists (dir ) {
140
136
os .MkdirAll (dir , 0755 )
141
137
}
Original file line number Diff line number Diff line change @@ -36,3 +36,13 @@ func get_executable_filename() string {
36
36
}
37
37
return ""
38
38
}
39
+
40
+ // config location
41
+
42
+ func config_dir () string {
43
+ return filepath .Join (xdg_home_dir (), "gocode" )
44
+ }
45
+
46
+ func config_file () string {
47
+ return filepath .Join (xdg_home_dir (), "gocode" , "config.json" )
48
+ }
You can’t perform that action at this time.
0 commit comments