xxxxxxxxxx
1
# Paste your yaml here...
2
kind test
3
metadata
4
name cluster
5
namespace test-ns
6

xxxxxxxxxx
12
1
// Yaml2Go
2
type Yaml2Go struct {
3
Kind string `yaml:"kind"`
4
Metadata Metadata `yaml:"metadata"`
5
}
6
7
// Metadata
8
type Metadata struct {
9
Name string `yaml:"name"`
10
Namespace string `yaml:"namespace"`
11
}
12

We would love your input. Please feel free to send PRs and open issues on the Github repo
The Go Gopher is originally by Renee French
This artwork is borrowed from an awesome artwork collection by Egon Elbre