From a299f11a054f4ecfc52a4e79cd1a56bb25f5c40d Mon Sep 17 00:00:00 2001 From: Milad Rahimi Date: Mon, 30 Sep 2019 22:46:14 +0330 Subject: [PATCH] add godoc badge --- README.md | 1 + container.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a265db9..a93a10c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/container.go b/container.go index a92b094..a0f04c3 100644 --- a/container.go +++ b/container.go @@ -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")