Hello All ,
I have use exec.Command(command)
on golang and convert it to string. When I RunCommand tasklist
on windowOS it return string type . How to convert it to json? i dont understand
This My Code : https://play.golang.org/p/gn2aMVCE9Xb
Result :
I need this result :
{
“image_name” : syystem idle proses ,
“PID” : 0 ,
“session_name” : “services”,
“session” : 0 ,
“mem_usage” : “8K”
}
etc
please help me to resolve this