From 5147048d4a67c59f799203e1cc5f79b183208cab Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Wed, 15 Feb 2017 12:55:58 +0100 Subject: Put the Manager in its own package --- conf/parser.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'conf') diff --git a/conf/parser.go b/conf/parser.go index 0e19338..29f8968 100644 --- a/conf/parser.go +++ b/conf/parser.go @@ -21,14 +21,12 @@ import ( "io" "os" + "github.com/Shugyousha/stasher/manager" "github.com/Shugyousha/stasher/registry" ) // Having a Config to Manager function could be nice? Or we could just // return a Manager from here which may be even better... -type Config struct { -} - type parser struct { s scanner last token @@ -48,11 +46,11 @@ func newParser(s *scanner) *parser { return p } -func NewConfig(r io.Reader) *Config { +func NewManagerFromConfig(r io.Reader) *manager.Manager { p := newParser(newScanner(r)) p.startparsing() - return &Config{} + return &manager.Manager{} } func (p *parser) startparsing() { -- cgit v1.2.3