I want to replicate the following
subprocess.run function call in Golang. What would be the correct way to do it?
subprocess.run(['kinit', username], input=password.encode())
So far, I've figured out how to use
exec.Command to run external commands, but what's confusing me is passing strings as input to
STDIN of that command. Python's
subprocess.run has a handy
input parameter that takes care of this, how can I achieve similar results in Golang?