Unlike Golang execute cd command for CMD, I just want to really run cd directory_location using golang and change the current directory.
So for example,
Say I am on ~/goproject, and I run, ./main in the terminal, I want to be at ~/goproject2 in the terminal.
I tried
cmd := exec.Command("bash", "-c", "cd", "~/goproject2")
cmd.Run()
But this didn't actually change the current directory.