refused_other.go 148 B

12345678910
  1. //go:build !windows
  2. package fetch
  3. import (
  4. "errors"
  5. "syscall"
  6. )
  7. func isRefused(err error) bool { return errors.Is(err, syscall.ECONNREFUSED) }