Skip to content

Releases: elliotchance/dingo

v1.4.2

30 Mar 16:14
94bcaa4
Compare
Choose a tag to compare
Sort arguments (#20)

Fixes #19 

Co-authored-by: James Dang <[email protected]>

v1.4.1

26 Feb 17:02
9912c52
Compare
Choose a tag to compare
Fix prototype bug (#18)

* fix:     has scope: 'prototype' and arguments use  @{SendEmail()} error panic: runtime error: invalid memory address or nil pointer dereference

* fix: PackageName is empty

Co-authored-by: wuji <[email protected]>

v1.4.0

20 Feb 20:04
832e079
Compare
Choose a tag to compare
feature: add yaml set Package (#17)

The root level `package` key describes the package name.

Default is the directory name is not enough because it may contain a command
(package main). Find the first non-test file to get the real package name.

v1.3.3

09 Oct 01:17
Compare
Choose a tag to compare
Refactoring out the deduction of package name and generation of the c…

v1.3.2

19 Aug 00:31
Compare
Choose a tag to compare
Panic when a service is referenced that doesn't exist (#15)

v1.3.1

29 Jun 08:12
a683aa0
Compare
Choose a tag to compare
Add generated code marker (#12)

"// Code generated by dingo; DO NOT EDIT" is the first line of dingo.go.

Fixes #1

v1.3.0

29 Jun 08:10
711d751
Compare
Choose a tag to compare
Added "arguments" (#11)

The "arguments" allow services to act as factories without intermediate code. Services that have "arguments" will be turned into a func and only compatible with the prototype scope.

Containers must now be created with NewContainer() (instead of &Container{}).

Fixes #5

v1.2.0

24 Jun 14:02
cfd803f
Compare
Choose a tag to compare
Adding "func" types (#10)

The `type` now allows functions, such as "func () bool". The `returns` can be used to return such a function and the contents can contain references to other services like all other Go expressions.

v1.1.0

20 Jun 06:51
4fdd3d9
Compare
Choose a tag to compare
Adding "scope" (#9)

The `scope` defines when a service should be created, or when it can be reused. It must be one of the following values:

- `prototype`: A new instance will be created whenever the service is requested or injected into another service as a dependency.

- `container` (default): The instance will created once for this container, and then it will be returned in future requests. This is sometimes called a singleton, however the service will not be shared outside of the container.

Fixes #2

v1.0.1

11 Jun 02:27
2586155
Compare
Choose a tag to compare
Properties must be sorted (#8)

The "properties" must be sorted so that the generated dingo.go is deterministic. It also makes it a little easier to read.