func PaddingLeft(str, pad string, lenght int) string {
	for {
		str = pad + str
		if len(str) > lenght {
			return str[1 : lenght+1]
		}
	}
}
PaddingLeft creates a new string by concatenating enough leading pad
characters to an original string to achieve a specified total length.

The following code example uses PaddingLeft  to create a new string
that is 5 characters long and padded on the left with zeros:

func main() {
str := "12"
fmt.Println(PaddingLeft(str, "0", 5))    // expects 00012
}
package utils
import (
	"bufio"
	"fmt"
	"os"
	"strings"
)
var (
	env = map[string]string{
		"PWD":  "",
		"HOME": "",
	}
)
func GetHome() string {
	return env["HOME"]
}
func GetPwd() string {
	return env["PWD"]
}
func InteractiveInput(prompt string) string {
	if prompt != "" {
		fmt.Printf("%s ", prompt)
	}
	input, err := bufio.NewReader(os.Stdin).ReadString('\n')
	Check(err)
	return SanitizeInput(input)
}
func SanitizeInput(input string) string {
	input = strings.TrimSpace(input)
	if input == "" {
		return input
	}
	input = strings.TrimPrefix(input, "\"")
	input = strings.TrimSuffix(input, "\"")
	return strings.NewReplacer("  ", " ", "\n", " ", "\t", " ", "\r", " ").Replace(input)
}
func PaddingRight(str, pad string, lenght int) string {
	for {
		str += pad
		if len(str) > lenght {
			return str[0:lenght]
		}
	}
}