const supportsSendfile … // sendFile copies the contents of r to c using the sendfile // system call to minimize copies. // // if handled == true, sendFile returns the number (potentially zero) of bytes // copied and any non-EOF error. // // if handled == false, sendFile performed no work. func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) { … }