Пример #1
0
// GetUserCacheDir is a wrapper around g_get_user_cache_dir().
// Returns a base directory in which to store non-essential,
// cached data specific to particular user.
func GetUserCacheDir() string {
	c := C.g_get_user_cache_dir()
	return C.GoString((*C.char)(c))
}
Пример #2
0
func GetUserCacheDir() string {
	return C.GoString(C.to_charptr(C.g_get_user_cache_dir()))
}