Skip to content

Commit

Permalink
Fix indentation in examples to consistently use tabs (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Humphries <[email protected]>
  • Loading branch information
jhump authored Oct 17, 2024
1 parent 6278ca9 commit f6acd82
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 f6acd82

Please sign in to comment.