// walkMap returns the value of VisitMap // // - call VisitMap // - set the return value on l.Dest // - walk each source field // - set each source field value on l.Dest func (l Walker) walkMap() (*yaml.RNode, error) { … } // valueIfPresent returns node.Value if node is non-nil, otherwise returns nil func (l Walker) valueIfPresent(node *yaml.MapNode) (*yaml.RNode, *openapi.ResourceSchema) { … } // fieldNames returns a sorted slice containing the names of all fields that appear in any of // the sources func (l Walker) fieldNames() []string { … } // fieldValue returns a slice containing each source's value for fieldName, the // schema, and a map of each source's value to the style for the source's key. func (l Walker) fieldValue(fieldName string) ([]*yaml.RNode, *openapi.ResourceSchema, map[*yaml.RNode]yaml.Style) { … }