Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions GOLANG_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ type ReadWriter interface {
```

## Use interfaces to inject dependencies
* Injecting dependancies allows us to replace them with other implementations and mocks for testing
* Data / metadata is not a dependancy and should be passed in through integral types or value objects (e.g. do not pass config around)
* Injecting dependencies allows us to replace them with other implementations and mocks for testing
* Data / metadata is not a dependency and should be passed in through integral types or value objects (e.g. do not pass config around)

:white_check_mark: Good (client is injected, config types are not introduced at all):
```
Expand Down Expand Up @@ -697,4 +697,4 @@ func TestQualification_UsersAlreadyQualified_DoesNotDuplicateQualification(t *te
func TestQualificationUsersQualified(t *testing.T) {
...
}
```
```