Skip to content

Instantly share code, notes, and snippets.

@scbizu
Created May 28, 2016 12:09
Show Gist options
  • Save scbizu/9143162026b8c577b5be30fc257ab2c9 to your computer and use it in GitHub Desktop.
Save scbizu/9143162026b8c577b5be30fc257ab2c9 to your computer and use it in GitHub Desktop.
[LINUX/OSX ENV]golang put file in a dir
package main
import (
"fmt"
"os/exec"
)
func main() {
MVcmd := exec.Command("mv", "Ncell.png", "test")
err := MVcmd.Run()
if err != nil {
fmt.Println("MV failed")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment