README ¶ Ulimit A pure Go library for managing resource limits. Usage import "github.com/nasdf/ulimit" Set limits err := ulimit.SetRlimit(2048) Get limits soft, hard, err := ulimit.GetRlimit() License MIT Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Overview ¶ Package ulimit contains methods for setting resource limits. Index ¶ func GetRlimit() (uint64, uint64, error) func SetRlimit(target uint64) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetRlimit ¶ func GetRlimit() (uint64, uint64, error) GetRlimit returns the soft and hard resource limits. func SetRlimit ¶ func SetRlimit(target uint64) error SetRlimit attempts to set the soft and hard resource limits. If the hard limit fails to update only the soft limit is set. Types ¶ This section is empty. Source Files ¶ View all Source files ulimit.go ulimit_unix.go Click to show internal directories. Click to hide internal directories.