diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2017-02-15 12:55:58 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2017-02-15 12:56:21 +0100 |
commit | 5147048d4a67c59f799203e1cc5f79b183208cab (patch) | |
tree | b3f8ac1a12b6d164809abc00c1a8dc05ed8ad56c /conf | |
parent | aab7d33eba775fc497e651d8bfb1537980b5d91e (diff) |
Put the Manager in its own package
Diffstat (limited to 'conf')
-rw-r--r-- | conf/parser.go | 8 |
1 files changed, 3 insertions, 5 deletions
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() { |