mirror of
https://github.com/rancher/norman.git
synced 2025-09-17 15:49:53 +00:00
When generating types, any field with name "id" was being skipped. The intention here was to skip the "id" field of the embedded types.Resource struct. A type will have an embedded types.Resource struct when the hasGet function returns true. Therefore, this hasGet function is also used to skip the id fields as desired.