func cwd() string {
	wd, err := os.Getwd()
	if err != nil {
		panic(err)
	}
	return wd
}
Returns the current working directory
package files
import (
	"fmt"
	constants "github.com/Flaque/thaum/thaum/constants"
	thaumErrors "github.com/Flaque/thaum/thaum/errors"
	"github.com/spf13/afero"
	"log"
	"os"
	"path"
	"path/filepath"
	"strings"
)
func exists(path string) bool {
	exists, err := afero.Exists(AppFs, path)
	if err != nil {
		log.Fatal(err)
	}
	return exists
}
func existsAbove(from string, query string) (string, error) {
	myPath := path.Join(from, query)
	if exists(myPath) {
		return myPath, nil
	}
	if path.Join(from, "../") == from {
		return "", thaumErrors.NoTemplateFolderAnywhere
	}
	return existsAbove(path.Join(from, "../"), query)
}