I am new to golang and trying to develop a commandline tool using cobra. I would like to provide flags like kubectl offers to it's users. As a first step i would like to implement kubectl standard format like this
kubectl get pods -n mpo
NAME READY STATUS RESTARTS AGE
my-deployment-5588bf7844-n2nw7 1/1 Running 0 3d
my-deployment-5588bf7844-qcpsl 1/1 Running 0 3d
Could please direct me to a simple example project (kubectl github project is too difficult for me to understand) or code where i could understand how to implement this output format.