...

/

Popular Encoding Formats - YAML

Popular Encoding Formats - YAML

Learn how to read YAML files in Go.

YAML (yet another markup language/YAML ain’t markup language) is a language that is commonly used to write configurations. YAML is the default language of services such as Kubernetes to hold configurations, and as DevOps engineers, we are likely to come across it in a variety of applications.

YAML has a few advantages over JSON for use in configurations:

  • Support for comments

  • More flexible for humans, such as unquoted strings and quoted strings.

  • Multiline strings

  • Anchors and references to avoid repetition of the same text data.

YAML is often cited as having the following ...