Initialise the command stuff

This commit is contained in:
Asim
2015-12-09 19:38:50 +00:00
parent 2753520ee4
commit 8e2dbb8997
3 changed files with 16 additions and 2 deletions

View File

@@ -1,6 +1,13 @@
package random
import "github.com/micro/go-micro/selector"
import (
"github.com/micro/go-micro/cmd"
"github.com/micro/go-micro/selector"
)
func init() {
cmd.Selectors["random"] = NewSelector
}
func NewSelector(opts ...selector.Option) selector.Selector {
return selector.NewSelector(opts...)