Skip to content

Commit

Permalink
Fix/bootstrap templates (#17)
Browse files Browse the repository at this point in the history
* Minor fixes to the bootstrap templates
  • Loading branch information
matzefriedrich authored Aug 29, 2024
1 parent d46a702 commit b8d5f56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.8.2] - 2024-08-29

### Fixed

* Minor changes to the bootstrap generator templates


## [v0.8.1] - 2024-08-29

Parsley is extended by the `parsley-cli` utility application, which is the foundation for new library features that cannot be implemented on top of reflection. Support for proxy and/or decorator types is better integrated via a code generator approach.
Expand Down
2 changes: 1 addition & 1 deletion internal/templates/bootstrap/application.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type parsleyApplication struct {
var _ bootstrap.Application = &parsleyApplication{}

// newApp Creates the main application service instance. This constructor function gets invoked by Parsley; add parameters for all required services.
func newApp(greeter Greeter) bootstrap.Application {
func NewApp(greeter Greeter) bootstrap.Application {
return &parsleyApplication{
greeter: greeter,
}
Expand Down
2 changes: 1 addition & 1 deletion internal/templates/bootstrap/main.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func main() {
context := context.Background()
bootstrap.RunParsleyApplication(context, newApp, configureGreeter)
bootstrap.RunParsleyApplication(context, NewApp, configureGreeter)
}

// configureGreeter A ModuleFunc registering the required Greeter services.
Expand Down

0 comments on commit b8d5f56

Please sign in to comment.