How to extend go-yaml to support custom tags
问题 I have spent some time reading the code and docs of go-yaml, but I have not found any way to do this, except forking the project.. I want to extend the YAML unmarshaller so that it can accept a custom YAML tag ( !include <file> in this case), which in turn would allow me to add support for including files. This is easily implemented with other YAML libraries, like in this answer. Is there any way to accomplish this, using the public interface of the library (or another yaml library)? 回答1: Yes