type UnknownFieldPathOptions … // RecordUnknownFields adds a path to an unknown field to the // record of UnknownFieldPaths, if TrackUnknownFieldPaths is true func (o *UnknownFieldPathOptions) RecordUnknownField(field string) { … } // AppendKey adds a key (i.e. field) to the current parent // path, if TrackUnknownFieldPaths is true. func (o *UnknownFieldPathOptions) AppendKey(key string) { … } // AppendIndex adds an index to the most recent field of // the current parent path, if TrackUnknownFieldPaths is true. func (o *UnknownFieldPathOptions) AppendIndex(index int) { … }