diff options
author | Wolfy-J <[email protected]> | 2018-07-08 10:23:30 -0700 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-08 10:23:30 -0700 |
commit | 3c3a7801100f29c99a5e446646c818bf16ccd5f0 (patch) | |
tree | 4d558ae6e799b5e76e8e56b192cf057d47f3527f /service/container.go | |
parent | 466383c72d921aba728de40b60910741e561c1d1 (diff) |
minor attributes refactoring
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 6 |
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() |