示例#1
0
文件: glib.go 项目: visionect/gotk3
// 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()))
}