Skip to content

Commit

Permalink
Merge branch 'main' into fix-isssue-138
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-aron-kyle authored Oct 18, 2024
2 parents 10e4501 + f6acd82 commit ee11453
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ Vanguard.
// A Connect handler factory function returns the service path and the HTTP
// handler. So you can pass the result directly to NewService:
myService := vanguard.NewService(
myservicev1connect.NewMyServiceHandler(&myServiceImpl{}),
myservicev1connect.NewMyServiceHandler(&myServiceImpl{}),
)

// If not using a Connect handler, you can still use this function and
// directly refer to the service's name.
myService = vanguard.NewService(
myservicev1connect.MyServiceName,
myservicev1connect.MyServiceName,
someOtherHTTPHandler,
)
```
Expand Down Expand Up @@ -150,8 +150,8 @@ expecting.

```go
transcoder := vanguard.NewTranscoder([]*vanguard.Service{
myService,
otherService,
myService,
otherService,
})
```

Expand All @@ -171,9 +171,9 @@ When creating a transcoder, you can supply options to customize it:
```go
transcoder = vanguard.NewTranscoder(
[]*vanguard.Service{
myService,
otherService,
},
myService,
otherService,
},
vanguard.WithUnknownHandler(custom404handler),
vanguard.WithCodec(myCustomMessageFormat{}),
)
Expand Down

0 comments on commit ee11453

Please sign in to comment.