// 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)) }
func GetHomeDir() string { return C.GoString(C.to_charptr(C.g_get_home_dir())) }