Skip to content

Commit

Permalink
Update package name (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Bovtunov authored Jun 8, 2023
1 parent 10db8d6 commit 0739076
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 20 deletions.
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html): TBD, use
modules or another vendor system.

## v1.12.0

### Changed

- Update package name

## v1.11.1

### Fixed

- [@chirino](https://github.com/chirino): fix: you could not use a
struct to for both di and json marshalling ([#41](https://github.com/goava/di/pull/41)).
struct to for both di and json marshalling ([#41](https://github.com/defval/di/pull/41)).

## v1.11.0

Expand All @@ -25,21 +31,21 @@ struct to for both di and json marshalling ([#41](https://github.com/goava/di/pu

- [@chirino](https://github.com/chirino): Prefer using "di:" field tags
to control injection options to avoid conflicting with tags used by
other libraries ([#38](https://github.com/goava/di/pull/38)).
other libraries ([#38](https://github.com/defval/di/pull/38)).

## v1.10.0

### Added

- [@chirino](https://github.com/chirino): Container nesting. See
`AddParent()` function ([#35](https://github.com/goava/di/pull/35)).
`AddParent()` function ([#35](https://github.com/defval/di/pull/35)).
- An experimental feature: Instance decoration with `di.Decorate()`.

### Fixed

- [@chirino](https://github.com/chirino): Calling `Resolve()` on a
`di.Injectable` would overwrite the skip fields
([#34](https://github.com/goava/di/pull/34)).
([#34](https://github.com/defval/di/pull/34)).

## v1.9.0

Expand Down Expand Up @@ -154,7 +160,7 @@ struct to for both di and json marshalling ([#41](https://github.com/goava/di/pu

### Fixed

- [Using `di.WithName()` breaks when having one entry without a `di.Name()`](https://github.com/goava/di/issues/16):
- [Using `di.WithName()` breaks when having one entry without a `di.Name()`](https://github.com/defval/di/issues/16):

## v1.2.0

Expand All @@ -173,7 +179,7 @@ struct to for both di and json marshalling ([#41](https://github.com/goava/di/pu
- Changed `di.Parameter` to `di.Inject`.
- Remove `optional` support from `di` tag.
- Add `optional` tag. See
[this](https://github.com/goava/di#optional-parameters).
[this](https://github.com/defval/di#optional-parameters).

### Added

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# DI

[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge&logo=go)](https://pkg.go.dev/github.com/goava/di)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/goava/di?logo=semver&style=for-the-badge)](https://github.com/goava/di/releases/latest)
[![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/goava/di/go.yml?branch=master&logo=github-actions&style=for-the-badge)](https://github.com/goava/di/actions/workflows/go.yml)
[![Go Report Card](https://img.shields.io/badge/go%20report-A%2B-green?style=for-the-badge)](https://goreportcard.com/report/github.com/goava/di)
[![Codecov](https://img.shields.io/codecov/c/github/goava/di?logo=codecov&style=for-the-badge)](https://codecov.io/gh/goava/di)
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge&logo=go)](https://pkg.go.dev/github.com/defval/di)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/defval/di?logo=semver&style=for-the-badge)](https://github.com/defval/di/releases/latest)
[![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/defval/di/go.yml?branch=master&logo=github-actions&style=for-the-badge)](https://github.com/defval/di/actions/workflows/go.yml)
[![Go Report Card](https://img.shields.io/badge/go%20report-A%2B-green?style=for-the-badge)](https://goreportcard.com/report/github.com/defval/di)
[![Codecov](https://img.shields.io/codecov/c/github/defval/di?logo=codecov&style=for-the-badge)](https://codecov.io/gh/defval/di)

**DI** is a dependency injection library for the Go programming language.

Expand All @@ -30,12 +30,12 @@ into high-level behavior without boilerplate.
## Installation

```shell
go get github.com/goava/di
go get github.com/defval/di
```

## Documentation

You can use the standard [pkg.go.dev](https://pkg.go.dev/github.com/goava/di) and inline code comments. If you are new
You can use the standard [pkg.go.dev](https://pkg.go.dev/github.com/defval/di) and inline code comments. If you are new
to auto-wiring libraries such as [google/wire](https://github.com/google/wire)
or [uber-go/dig](https://github.com/uber-go/dig), start with the [tutorial](./docs/tutorial.md).

Expand All @@ -59,7 +59,7 @@ import (
"os/signal"
"syscall"

"github.com/goava/di"
"github.com/defval/di"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/condition_provide/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"os"

"github.com/goava/di"
"github.com/defval/di"
)

// Configuration
Expand Down
2 changes: 1 addition & 1 deletion _examples/tutorial/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/goava/di"
"github.com/defval/di"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/goava/di"
"github.com/defval/di"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ func errWithStack(err error) error {
}

func bug() {
panic("you found a bug, please create new issue for this: https://github.com/goava/di/issues/new")
panic("you found a bug, please create new issue for this: https://github.com/defval/di/issues/new")
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/goava/di
module github.com/defval/di

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/goava/di"
"github.com/defval/di"
)

func TestOptions(t *testing.T) {
Expand Down

0 comments on commit 0739076

Please sign in to comment.