diff --git a/.gitignore b/.gitignore index d0f0765..53767ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ gtt +*.exe \ No newline at end of file diff --git a/utils.go b/utils.go index 7a35826..fcce677 100644 --- a/utils.go +++ b/utils.go @@ -29,5 +29,9 @@ func CopyToClipboard(text string) { exec.Command("sh", "-c", fmt.Sprintf("echo -n '%s' | pbcopy", text)). Start() + case "windows": + exec.Command("cmd", "/c", + fmt.Sprintf("echo %s | clip", text)). + Start() } }