Add HomeDir function

This commit is contained in:
Milan Nikolic 2017-02-13 23:01:34 +01:00
parent 4ae938ada9
commit 4f1b3206c5
6 changed files with 92 additions and 21 deletions

View file

@ -1,4 +1,4 @@
// +build !android
// +build !android,!windows
package raylib
@ -38,3 +38,8 @@ func TraceLog(msgType int, text string, v ...interface{}) {
}
}
}
// HomeDir returns user home directory
func HomeDir() string {
return os.Getenv("HOME")
}