RestMapper In Go
Initialize the go project
go mod init github.com/<your-username>/<project-name>
Import the required packages
package main
import (
"flag"
"fmt"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/cli-runtime/pkg/genericclioptions"
...
utsabsapkota.hashnode.dev3 min read