File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 22description : 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
336340type 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
340345type 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
345351func New(
You can’t perform that action at this time.
0 commit comments