README ¶ fdmax Small Helper library that increases automatically the maximum number of file descriptors for the current go program. It can be simply imported as follows: package main import ( "fmt" _ "github.com/projectdiscovery/fdmax/autofdmax" ) func main() { fmt.Println("test") } Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 darwin/amd64 js/wasm Index ¶ Constants func Set(maxLimit uint64) error type Limits func Get() (*Limits, error) Constants ¶ View Source const ( UnixMax uint64 = 999999 OSXMax uint64 = 24576 ) Variables ¶ This section is empty. Functions ¶ func Set ¶ func Set(maxLimit uint64) error Types ¶ type Limits ¶ type Limits struct { Current uint64 Max uint64 } func Get ¶ func Get() (*Limits, error) Source Files ¶ View all Source files fdmax.go Directories ¶ Show internal Expand all Path Synopsis autofdmax example cmd command Click to show internal directories. Click to hide internal directories.