Repository navigation
docs: mark Service Injection code examples as illustrative with template references - #278
Merged
Merged
Conversation
…ate references Audited the Service Injection and Configuration Management section in README.md against the actual Go templates in internal/templates/languages/go/. The code examples (config.go.tmpl, service.go.tmpl, tool.go.tmpl, main.go.tmpl) differed significantly from what the templates actually generate - wrong package names (skills/ vs tools/), wrong struct names (Skill vs Tool), wrong constructor signatures, and fields that don't exist in the templates (Environment field, concrete interface methods). Rather than updating the examples to match the current template output (which would drift again), each code block is now marked as 'illustrative' with a note pointing to the actual template file. The examples were also updated to more closely reflect the template patterns (Tool naming, server.NewBasicTool usage, service.go.tmpl's TODO-comment style) while keeping the disclaimer that actual output may vary.
edenreich
marked this pull request as ready for review
July 14, 2026 19:34
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 14, 2026
## [0.48.0](v0.47.1...v0.48.0) (2026-07-14) ### ✨ Features * bump Go version to 1.26.4 ([#279](#279)) ([4945a28](4945a28)) * generate OTel-aligned telemetry configuration from extended spec.telemetry ([#281](#281)) ([47c5b3d](47c5b3d)) ### 🐛 Bug Fixes * quote boolean and numeric env values in compose template ([#267](#267)) ([6198824](6198824)) ### 📚 Documentation * add missing CLI flags to README generate/init flag tables ([#275](#275)) ([db0a842](db0a842)) * document spec.telemetry OpenTelemetry generation ([#277](#277)) ([bd75c08](bd75c08)), references [#259](#259) * fix project structure diagrams and universal files section ([#274](#274)) ([17bad1b](17bad1b)), closes [#272](#272) * mark Service Injection code examples as illustrative with template references ([#278](#278)) ([69b9806](69b9806)) * remove missing example ref, document all examples ([#273](#273)) ([4e30aff](4e30aff)), closes [#268](#268) * update Template System and Architecture section with accurate Context struct and file mapping ([#276](#276)) ([352d084](352d084))
Contributor
|
🎉 This PR is included in version 0.48.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #270
Summary
Audited the "Service Injection & Configuration Management" section in README.md against the actual Go templates in
internal/templates/languages/go/. The code examples differed significantly from what the templates actually generate - wrong package names (skills/vstools/), wrong struct names (SkillvsTool), wrong constructor signatures, and fields that don't exist in the templates. Rather than updating the examples to match the current template output (which would drift again), each code block is now clearly marked as "illustrative" with a note pointing to the actual template file.Changes
Environmentfield and added an illustrative note pointing toconfig.go.tmplToolnaming,server.NewBasicToolpattern, andtools/package path, with illustrative notes pointing totool.go.tmpltools.NewExportReportToolinstead ofskills.NewExportReportSkill, with illustrative note pointing tomain.go.tmplservice.go.tmploutput (TODO-comment style interface,Implstruct, logger.Info in constructor), with illustrative noteToolnaming andserver.NewBasicToolpattern, with illustrative note pointing totool.go.tmpl