Skip to content
This repository was archived by the owner on Jan 22, 2022. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Feb 14, 2017

Added anonymous struct support for "CreateQuery". It now accepts a optional variadic "class" parameter.
So you can pass the wmi class name when your struct is anonymous and has no name or your struct is not named like the wmi class.

Added anonymous struct support for "CreateQuery". It now accepts a optional variadic "class" parameter.
So you can pass the wmi class name when your struct is anonymous and has no name or your struct is not named like the wmi class.
Copy link

@Moe-Kite Moe-Kite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be a great addition, some WMI classes have a name that is incompatible with golint standard (implementing Effective Go rules), mainly no underscore in type name rule.

@tlimoncelli
Copy link
Contributor

Sadly the original creators of this module are no longer with Stack Overflow, but I feel that the change looks low-risk and is safe to merge.

@tlimoncelli tlimoncelli merged commit fe8f175 into StackExchange:master Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants