Skip to content

Commit abfc2ad

Browse files
authored
Merge pull request #259 from rebuy-de/claude-code-prompts
adjust claude code prompts
2 parents 69fc735 + 997b340 commit abfc2ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.claude-commands/rebuy-go-sdk:docs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
description: Reads the documentation for rebuy-go-sdk into the LLM context.
33
---
44

5+
# General Advice
6+
57
- The examples below might have a wrong import path that needs to be adjusted to the project go module.
68
- Always use `./buildutil` for compiling the project.
9+
- Strings that are passed into dependency injections should have a dedicated type (`type FooParam string`) that gets
10+
converted back into a plain `string` in the `New*` functions.
711

812
# File main.go
913

@@ -335,11 +339,13 @@ import (
335339
336340
type Viewer struct {
337341
assetPathPrefix webutil.AssetPathPrefix
342+
// All values that are needed by the templates and are provided by dig should go here.
338343
}
339344
340345
type RequestAwareViewer struct {
341346
*Viewer
342347
request *http.Request
348+
// Should only contain fields that change between requests. Everything else should be injected into the Viewer.
343349
}
344350
345351
func New(

0 commit comments

Comments
 (0)