File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,20 @@ import (
36
36
"runtime"
37
37
)
38
38
39
+ // The functions defined below allow compile on non-Windows OS. The caller
40
+ // may choose to not call those functions based on runtime.GOOS value.
41
+
42
+ // GetDocumentsFolder returns the Document folder
39
43
func GetDocumentsFolder () (string , error ) {
40
44
return "" , fmt .Errorf ("operating system not supported: %s" , runtime .GOOS )
41
45
}
42
46
47
+ // GetLocalAppDataFolder returns the LocalAppData folder
43
48
func GetLocalAppDataFolder () (string , error ) {
44
49
return "" , fmt .Errorf ("operating system not supported: %s" , runtime .GOOS )
45
50
}
46
51
52
+ // GetRoamingAppDataFolder returns the AppData folder
47
53
func GetRoamingAppDataFolder () (string , error ) {
48
54
return "" , fmt .Errorf ("operating system not supported: %s" , runtime .GOOS )
49
55
}
You can’t perform that action at this time.
0 commit comments