func GetFileContent(filename string) string {
	var result string
	if strings.Contains(filename, "~") {
		filename, _ = homedir.Expand(filename)
	}
	file, err := os.Open(filename)
	if err != nil {
		return result
	}
	defer file.Close()
	b, err := ioutil.ReadAll(file)
	if err != nil {
		return result
	}
	return string(b)
}
GetFileContent Reading file and return content of it
package utils
import (
	"bufio"
	"crypto/sha1"
	"fmt"
	"io"
	"io/ioutil"
	"math/rand"
	"net/url"
	"os"
	"os/exec"
	"regexp"
	"strconv"
	"strings"
	"time"
	"github.com/mitchellh/go-homedir"
)
func CalcTimeout(raw string) int {
	raw = strings.ToLower(strings.TrimSpace(raw))
	seconds := raw
	multiply := 1
	matched, _ := regexp.MatchString(`.*[a-z]`, raw)
	if matched {
		unitTime := fmt.Sprintf("%c", raw[len(raw)-1])
		seconds = raw[:len(raw)-1]
		switch unitTime {
		case "s":
			multiply = 1
			break
		case "m":
			multiply = 60
			break
		case "h":
			multiply = 3600
			break
		}
	}
	timeout, err := strconv.Atoi(seconds)
	if err != nil {
		return 0
	}
	return timeout * multiply
}
func GetDomain(raw string) (string, error) {
	u, err := url.Parse(raw)
	if err == nil {
		return u.Hostname(), nil
	}
	return raw, err
}
func EmptyDir(dir string) bool {
	if !FolderExists(dir) {
		return true
	}
	f, err := os.Open(NormalizePath(dir))
	if err != nil {
		return false
	}
	defer f.Close()
	_, err = f.Readdirnames(1)
	if err == io.EOF {
		return true
	}
	return false
}
func EmptyFile(filename string, num int) bool {
	filename = NormalizePath(filename)
	if !FileExists(filename) {
		return true
	}
	data := ReadingLines(filename)
	if len(data) > num {
		return false
	}
	return true
}
func StrToInt(data string) int {
	i, err := strconv.Atoi(data)
	if err != nil {
		return 0
	}
	return i
}
func GetOSEnv(name string, alt string) string {
	variable, ok := os.LookupEnv(name)
	if !ok {
		if alt != "" {
			return alt
		}
		return name
	}
	return variable
}
func MakeDir(folder string) {
	os.MkdirAll(folder, 0750)
}
func GetCurrentDay() string {
	currentTime := time.Now()
	return fmt.Sprintf("%v", currentTime.Format("2006-01-02_3:4:5"))
}
func NormalizePath(path string) string {
	if strings.HasPrefix(path, "~") {
		path, _ = homedir.Expand(path)
	}
	return path
}