Command pipe function in Go