Skip to content

Commit

Permalink
Pull config from go-bindata
Browse files Browse the repository at this point in the history
  • Loading branch information
mpchadwick committed Mar 31, 2019
1 parent 635de8c commit aeb3cdc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package dbanon

import "gopkg.in/yaml.v2"
import "io/ioutil"

type Config struct {
Tables []string
Expand All @@ -10,8 +9,7 @@ type Config struct {
func NewConfig() *Config {
c := &Config{}

// TODO - Properly bundle this
source, _ := ioutil.ReadFile("/Users/maxchadwick/go/src/github.com/mpchadwick/dbanon/etc/magento2.yml")
source, _ := Asset("etc/magento2.yml")
yaml.Unmarshal(source, &c)

return c
Expand Down

0 comments on commit aeb3cdc

Please sign in to comment.