Dependencies Update golang.org/x/tools v0.7.0 to v0.8.0

This commit is contained in:
Mohit Sharma
2023-04-14 04:39:43 -07:00
parent 0afa60086a
commit 6f90c53633
154 changed files with 764 additions and 1055 deletions

View File

@@ -587,3 +587,10 @@ func emptyIovecs(iov []Iovec) bool {
}
return true
}
// Setrlimit sets a resource limit.
func Setrlimit(resource int, rlim *Rlimit) error {
// Just call the syscall version, because as of Go 1.21
// it will affect starting a new process.
return syscall.Setrlimit(resource, (*syscall.Rlimit)(rlim))
}