Пример #1
0
// GetHomeDir is a wrapper around g_get_home_dir().
// Gets the current user's home directory.
func GetHomeDir() string {
	c := C.g_get_home_dir()
	return C.GoString((*C.char)(c))
}
Пример #2
0
func GetHomeDir() string {
	return C.GoString(C.to_charptr(C.g_get_home_dir()))
}