How to parse a Kubernetes YAML in Go?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • yaml

    A better way to marshal and unmarshal YAML in Golang (by kubernetes-sigs)

    Note that kubernetes types don't have `yaml` tags but `json`, so everything is handled with json first then converted to yaml. It uses this lib https://github.com/kubernetes-sigs/yaml

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • lingon

    Discontinued Lingon is a collection of libraries and tools for building platforms using Go.

    Shameless plug: We had tons of yaml to convert to Go so we built a library for it, here is an example on how to use it with CRDs https://github.com/volvo-cars/lingon/tree/main/docs/kubernetes/crd. If you are in a rush or it's more of a one-off, you can use this webapp to convert it from yaml to Go https://lingonweb.bisconti.cloud There might be a bit of documentation to read and not all CRDs are currently supported, open an issue if that is the case.

  • JSON-to-Go

    Translates JSON into a Go type in your browser instantly (original)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Gotestdox: A tool for formatting Go test results as readable documentation

    1 project | news.ycombinator.com | 25 Jul 2023
  • JSON to Go Struct Converter

    1 project | /r/golang | 8 Jul 2023
  • Gotestdox: A command-line tool for turning Go test names into readable sentences

    1 project | news.ycombinator.com | 2 Jul 2023
  • Go-critic: the most opinionated Golang source code linter

    1 project | news.ycombinator.com | 4 Jun 2023
  • Some annoying moments in Golang

    3 projects | /r/golang | 30 May 2023

Did you konow that Go is
the 4th most popular programming language
based on number of metions?