RestMapper In Go
Apr 28, 2024 · 3 min read · 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"
...