// WriteFile some data to file
WriteFile some data to file
// WriteFile some data to file
func WriteFile(file, data string) error {
	f, err := os.Create(file)
	if err != nil {
		return err
	}
	defer f.Close()
	w := bufio.NewWriter(f)
	_, err = w.WriteString(data)
	if err != nil {
		return err
	}
	w.Flush()
	return nil
}
func WriteFile ( file , data string ) error { f , err := os . Create ( file ) if err != nil { return err } defer f . Close ( ) w := bufio . NewWriter ( f ) _ , err = w . WriteString ( data ) if err != nil { return err } w . Flush ( ) return nil }
WriteFile some data to file
WriteFile some data to file