summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-08 10:23:30 -0700
committerWolfy-J <[email protected]>2018-07-08 10:23:30 -0700
commit3c3a7801100f29c99a5e446646c818bf16ccd5f0 (patch)
tree4d558ae6e799b5e76e8e56b192cf057d47f3527f /service/container.go
parent466383c72d921aba728de40b60910741e561c1d1 (diff)
minor attributes refactoring
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/container.go b/service/container.go
index 0987b1ae..12c5a4a1 100644
--- a/service/container.go
+++ b/service/container.go
@@ -10,7 +10,7 @@ import (
// Config provides ability to slice configuration sections and unmarshal configuration data into
// given structure.
type Config interface {
- // Get nested config section (sub-map), returns nil if section not found.
+ // get nested config section (sub-map), returns nil if section not found.
Get(service string) Config
// Unmarshal unmarshal config data into given struct.
@@ -28,7 +28,7 @@ type Container interface {
// Check if svc has been registered.
Has(service string) bool
- // Get returns svc instance by it's name or nil if svc not found. Method returns current service status
+ // get returns svc instance by it's name or nil if svc not found. Method returns current service status
// as second value.
Get(service string) (svc Service, status int)
@@ -81,7 +81,7 @@ func (c *container) Has(target string) bool {
return false
}
-// Get returns svc instance by it's name or nil if svc not found.
+// get returns svc instance by it's name or nil if svc not found.
func (c *container) Get(target string) (svc Service, status int) {
c.mu.Lock()
defer c.mu.Unlock()