From f4fd862dc5880ed6cca47e67ef85447204968889 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Sun, 28 Apr 2013 14:36:39 -0700 Subject: [PATCH] stdservice: Make function a method. --- stdservice/stdservice.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stdservice/stdservice.go b/stdservice/stdservice.go index 40236b4..16d83ed 100644 --- a/stdservice/stdservice.go +++ b/stdservice/stdservice.go @@ -55,7 +55,16 @@ func (c *Config) Logger() service.Logger { // Fill in configuration, then call Run() to setup basic handling. // Blocks until program completes. Is intended to handle the standard // simple cases for running a service. +func (c *Config) Run() { + run(c) +} + +// Depreciated. Same as *Config.Run(). func Run(c *Config) { + run(c) +} + +func run(c *Config) { var s, err = service.NewService(c.Name, c.DisplayName, c.LongDescription) c.s = s c.l = s