Skip to content

Commit

Permalink
add godoc badge
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Sep 30, 2019
1 parent ef10f76 commit a299f11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![GoDoc](https://godoc.org/github.com/golobby/container?status.svg)](https://godoc.org/github.com/golobby/container)
[![Build Status](https://travis-ci.org/golobby/container.svg?branch=master)](https://travis-ci.org/golobby/container)
[![Coverage State](https://coveralls.io/repos/github/golobby/container/badge.svg?branch=master)](https://coveralls.io/github/golobby/container)

Expand Down
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Transient(resolverFunction interface{}) {

// Make will resolve the dependency and return the concrete of given abstraction.
// It takes a function (receiver) with one or more arguments of the abstractions (interfaces) that need to be resolved,
// the Container invokes the receiver function and pass the related concretes
// the Container invokes the receiver function and pass the related concretes.
func Make(receiverFunction interface{}) {
if reflect.TypeOf(receiverFunction).Kind() != reflect.Func {
panic("the argument (receiver) passed to Make() is not a function")
Expand Down

0 comments on commit a299f11

Please sign in to comment.