// Creates the based on the construction
// passed on the gootstrap file
Creates the based on the construction
passed on the gootstrap file
// Creates the based on the construction // passed on the gootstrap file
func (gf gootFile) createFile() error {
	fileCreate, err := os.Create(gf.fileName)
	if err != nil {
		return err
	}
	defer fileCreate.Close()
	fileCreate.WriteString(gf.template.Parse())
	fmt.Println(gf.okMessage)
	return nil
}
func ( gf gootFile ) createFile ( ) error { fileCreate , err := os . Create ( gf . fileName ) if err != nil { return err } defer fileCreate . Close ( ) fileCreate . WriteString ( gf . template . Parse ( ) ) fmt . Println ( gf . okMessage ) return nil }
Creates the based on the construction
passed on the gootstrap file
Creates the based on the construction passed on the gootstrap file
// Creates the file and defer its closing // Writes the template into file and // then, writes the output to os.Stdout.