func ResourceBuilder(resource, blockName string, resourceBlock map[string]interface{}) {
	var resourceBuilder strings.Builder
	if resource != "" {
		resourceBuilder.WriteString("\nresource \"" + resource + "\" \"" + blockName + "\" {\n")
		resourceBuilder = recursiveBuilder(&resourceBuilder, reflect.ValueOf(resourceBlock))
		_, err := file.TerraformFile.WriteString(resourceBuilder.String())
		if err != nil {
			fmt.Println(err)
		}
		if terraformExists() {
			cmd := exec.Command("terraform", "fmt")
			err := cmd.Run()
			if err != nil {
				log.Println(err)
			}
		}
	}
}
ResourceBuilder builds the resource configuration
package builder
import (
	"fmt"
	"log"
	"os/exec"
	"reflect"
	"strconv"
	"strings"
	"github.com/asaskevich/govalidator"
	"github.com/g14a/tf/file"
	"github.com/g14a/tf/types"
)
func ProviderBuilder(provider string, providerBlock map[string]interface{}) {
	var providerInfo strings.Builder
	if provider != "" {
		providerInfo.WriteString("\nprovider \"" + provider + "\" {\n")
		providerInfo = recursiveBuilder(&providerInfo, reflect.ValueOf(providerBlock))
		_, err := file.TerraformFile.WriteString(providerInfo.String())
		if err != nil {
			fmt.Println(err)
		}
		if terraformExists() {
			cmd := exec.Command("terraform", "fmt")
			err := cmd.Run()
			if err != nil {
				log.Println(err)
			}
		}
	}
}