How to Dynamically Unmarshal YAML into Structs Implementing a Common Interface in Go?
I’m trying to parse YAML in Go where I have dynamic conditions. Each condition corresponds to a specific struct that implements a common interface. Here’s a simplified example of my YAML configuration:
Golang YAML Unmarshal doesn’t unmarshal nested yaml keys
I’d like to load a list of objects from a yaml file but for some reason the nested properties in my yaml file are not properly loaded: