Skip to content

Commit

Permalink
Add package declaration before imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Oct 10, 2024
1 parent 83f49c6 commit 510db79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/code-sample/go.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const createGoRequest = (

const pathParts = request.path.split('/')

return `${goSdkImports}
return `package main
${goSdkImports}
func main() {
client${pathParts.map((p) => pascalCase(p)).join('.')}(${goSdkRequestArgs})
Expand Down

0 comments on commit 510db79

Please sign in to comment.