Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Created July 23, 2015 13:46
Show Gist options
  • Save FooBarWidget/78923324adbf5e61935e to your computer and use it in GitHub Desktop.
Save FooBarWidget/78923324adbf5e61935e to your computer and use it in GitHub Desktop.
switch {
// The following line triggers this compiler error:
// input.ch <- websocketReadResult literal used as value
case input.ch <- websocketReadResult{ messageType, p, nil }:
// Do nothing
case <- input.cancel:
conn.abortWriterFromReaderProcess()
break
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment