/
githubmirror
/
rclone
Обзор
Документация
Войти
/
githubmirror
/
rclone
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.70.0
lib/debug/common.go
18 строк
501 B
Anagh Kumar Baranwal
build: update to go1.21rc3 and make go1.19 the minimum required version
16 июл 2023, 12:09
16 июл 2023, 12:09
0ef0e90
Код
Авторство
О чём код?
// Package debug contains functions for dealing with runtime/debug functions across go versions package debug import ( "runtime/debug" ) // SetGCPercent calls the runtime/debug.SetGCPercent function to set the garbage // collection percentage. func SetGCPercent(percent int) int { return debug.SetGCPercent(percent) } // SetMemoryLimit calls the runtime/debug.SetMemoryLimit function to set the // soft-memory limit. func SetMemoryLimit(limit int64) int64 { return debug.SetMemoryLimit(limit) }