func WriteConfig(fname string) error {
	src, err := os.Open(fname)
	if err != nil {
		return err
	}
	defer src.Close()
	dst, err := os.Create(configName)
	if err != nil {
		return err
	}
	defer dst.Close()

	_, err = io.Copy(dst, src)
	return err
}
// WriteConfig writes a config file to the local folder
WriteConfig writes a config file to the local folder
// WriteConfig writes a config file to the local folder
func WriteConfig(fname string) error {
	src, err := os.Open(fname)
	if err != nil {
		return err
	}
	defer src.Close()
	dst, err := os.Create(configName)
	if err != nil {
		return err
	}
	defer dst.Close()
	_, err = io.Copy(dst, src)
	return err
}
func WriteConfig ( fname string ) error { src , err := os . Open ( fname ) if err != nil { return err } defer src . Close ( ) dst , err := os . Create ( configName ) if err != nil { return err } defer dst . Close ( ) _ , err = io . Copy ( dst , src ) return err }
WriteConfig writes a config file to the local folder
WriteConfig writes a config file to the local folder