Skip to content

Commit

Permalink
clarify server and client support, add twirpy
Browse files Browse the repository at this point in the history
  • Loading branch information
ofpiyush committed May 18, 2020
1 parent 2bffe5f commit 9a34c66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ For other languages, there are third-party generators available:

| Language | Clients | Servers | Repository |
|----------------|---------|---------|------------|
| **Go** | ✓ | ✓ | Official support
| **Python** | ✓ | | Official support [(partial)](https://github.com/twitchtv/twirp/issues/185)
| **Python3** | ✓ | ✓ | [github.com/verloop/twirpy](https://github.com/verloop/twirpy)
| **Java** | ✓ | ✓ | [github.com/fajran/protoc-gen-twirp_java_jaxrs](https://github.com/fajran/protoc-gen-twirp_java_jaxrs)
| **Java** | | ✓ | [https://github.com/devork/flit](https://github.com/devork/flit)
| **JavaScript** | ✓ | | [github.com/thechriswalker/protoc-gen-twirp_js](https://github.com/thechriswalker/protoc-gen-twirp_js)
Expand Down
4 changes: 2 additions & 2 deletions errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestWithMetaRaces(t *testing.T) {
}

func TestErrorCause(t *testing.T) {
rootCause := fmt.Errorf("this is only a test")
rootCause := errors.New("this is only a test")
twerr := InternalErrorWith(rootCause)
cause := errors.Cause(twerr)
if cause != rootCause {
Expand All @@ -57,7 +57,7 @@ type errorResponeWriter struct {
}

func (errorResponeWriter) Write([]byte) (int, error) {
return 0, fmt.Errorf("this is only a test")
return 0, errors.New("this is only a test")
}

func TestWriteError(t *testing.T) {
Expand Down

0 comments on commit 9a34c66

Please sign in to comment.