func (c DeckConfig) Save(filename string) error {
	var b bytes.Buffer
	e := toml.NewEncoder(&b)
	err := e.Encode(c)
	if err != nil {
		return err
	}

	return ioutil.WriteFile(filename, b.Bytes(), 0644)
}
// Save writes config as json to filename.
Save writes config as json to filename.
// Save writes config as json to filename .
func (c DeckConfig) Save(filename string) error {
	var b bytes.Buffer
	e := toml.NewEncoder(&b)
	err := e.Encode(c)
	if err != nil {
		return err
	}
	return ioutil.WriteFile(filename, b.Bytes(), 0644)
}
func ( c DeckConfig ) Save ( filename string ) error { var b bytes . Buffer e := toml . NewEncoder ( & b ) err := e . Encode ( c ) if err != nil { return err } return ioutil . WriteFile ( filename , b . Bytes ( ) , 0644 ) }
Save writes config as json to filename.
Save writes config as json to filename .