Skip to content

Instantly share code, notes, and snippets.

@rueian
Created February 4, 2022 08:33
Show Gist options
  • Save rueian/bcb78c5ef360f246115fbfa37ea1b419 to your computer and use it in GitHub Desktop.
Save rueian/bcb78c5ef360f246115fbfa37ea1b419 to your computer and use it in GitHub Desktop.
func reading(incoming *bufio.Reader) error {
for {
resp, err := readResponse(incoming)
if err != nil {
return err
}
// find the original caller and send the response to it
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment