From f6acd829f2c1b030be86195474aedf9df39a8273 Mon Sep 17 00:00:00 2001 From: Joshua Humphries <2035234+jhump@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:07:33 -0400 Subject: [PATCH] Fix indentation in examples to consistently use tabs (#140) Signed-off-by: Josh Humphries <2035234+jhump@users.noreply.github.com> --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3d9bd83..f5322b6 100644 --- a/README.md +++ b/README.md @@ -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, ) ``` @@ -150,8 +150,8 @@ expecting. ```go transcoder := vanguard.NewTranscoder([]*vanguard.Service{ - myService, - otherService, + myService, + otherService, }) ``` @@ -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{}), )