diff --git a/src/lib/code-sample/go.ts b/src/lib/code-sample/go.ts index 6d731be9..94456f51 100644 --- a/src/lib/code-sample/go.ts +++ b/src/lib/code-sample/go.ts @@ -24,7 +24,7 @@ export const createGoRequest = ( goPackageName, requestStructName, }) - const goSdkRequestArgs = `context.Background()${isReqWithParams ? `, ${goPackageName}.${requestStructName}{${formattedArgs}}` : ''}` + const goSdkRequestArgs = `context.Background()${isReqWithParams ? `,\n${goPackageName}.${requestStructName}{\n${formattedArgs},\n}` : ''}` const pathParts = request.path.split('/') @@ -32,7 +32,7 @@ export const createGoRequest = ( ${goSdkImports} func main() { - client${pathParts.map((p) => pascalCase(p)).join('.')}(${goSdkRequestArgs}) + client${pathParts.map((p) => pascalCase(p)).join('.')}(${isReqWithParams ? '\n' : ''}${goSdkRequestArgs},\n) } `.trim() } @@ -105,7 +105,7 @@ const formatGoRequestArgs = ( ) return `${pascalCase(paramKey)}: ${formattedValue}` }) - .join(', ') + .join(',\n') const formatGoRequestArgValue = ( key: string, diff --git a/test/snapshots/blueprint.test.ts.md b/test/snapshots/blueprint.test.ts.md index 1cb214a6..417d3d2c 100644 --- a/test/snapshots/blueprint.test.ts.md +++ b/test/snapshots/blueprint.test.ts.md @@ -272,7 +272,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -394,7 +399,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -516,7 +526,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -639,7 +654,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -762,7 +782,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -884,7 +909,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -1006,7 +1036,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -1129,7 +1164,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -1252,7 +1292,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -1374,7 +1419,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: 'api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar", NestedObjectProp: api.FooObjectPropNestedObjectProp{Foo: "bar"}}, ArrayProp: []string{"foo", "bar"}}', @@ -1496,7 +1546,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -1619,7 +1674,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: '[]api.Foo{api.Foo{FooId: "8d7e0b3a-b889-49a7-9164-4b71a0506a33", Name: "Best foo", NullableProp: nil, NumberProp: 10, ObjectProp: api.FooObjectProp{Foo: "bar"}, ArrayProp: []string{"foo", "bar"}}}', @@ -1753,7 +1813,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: '[]api.Plane{api.Plane{PlaneId: "9d3163f9-9185-40d3-a0ce-a03d3c7ce402", Name: "Woosh"}}', @@ -1863,7 +1924,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: '[]api.Plane{api.Plane{PlaneId: "9d3163f9-9185-40d3-a0ce-a03d3c7ce402", Name: "Woosh"}}', @@ -1973,7 +2035,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: '[]api.Plane{api.Plane{PlaneId: "9d3163f9-9185-40d3-a0ce-a03d3c7ce402", Name: "Woosh"}}', @@ -2099,7 +2162,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2200,7 +2264,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2301,7 +2366,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2418,7 +2484,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2519,7 +2586,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2620,7 +2688,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: 'nil', @@ -2989,7 +3058,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3127,7 +3201,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3265,7 +3344,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3404,7 +3488,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3543,7 +3632,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3681,7 +3775,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3819,7 +3918,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -3958,7 +4062,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4097,7 +4206,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4235,7 +4349,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.Get(context.Background(), api.FoosGetRequest{FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33")})␊ + client.Foos.Get(␊ + context.Background(),␊ + api.FoosGetRequest{␊ + FooId: api.String("8d7e0b3a-b889-49a7-9164-4b71a0506a33"),␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4373,7 +4492,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4512,7 +4636,12 @@ Generated by [AVA](https://avajs.dev). import api "github.com/seamapi/go"␊ ␊ func main() {␊ - client.Foos.List(context.Background(), api.FoosListRequest{ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")}})␊ + client.Foos.List(␊ + context.Background(),␊ + api.FoosListRequest{␊ + ObjectProp: api.FoosListRequestObjectProp{Foo: api.String("bar")},␊ + },␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4662,7 +4791,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4788,7 +4918,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -4914,7 +5045,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Transport.Air.Planes.List(context.Background())␊ + client.Transport.Air.Planes.List(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5056,7 +5188,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5173,7 +5306,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5290,7 +5424,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Deprecated.Undocumented.Endpoint(context.Background())␊ + client.Deprecated.Undocumented.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5423,7 +5558,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5540,7 +5676,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ @@ -5657,7 +5794,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ func main() {␊ - client.Draft.Endpoint(context.Background())␊ + client.Draft.Endpoint(context.Background(),␊ + )␊ }`, request_syntax: 'go', response: `// go␊ diff --git a/test/snapshots/blueprint.test.ts.snap b/test/snapshots/blueprint.test.ts.snap index d34ef1a6..07e322cd 100644 Binary files a/test/snapshots/blueprint.test.ts.snap and b/test/snapshots/blueprint.test.ts.snap differ