mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-23 21:26:36 +00:00
chore: enable more linter (#1557)
This commit is contained in:
@@ -41,6 +41,9 @@ func QueryNamespace(query string, dst interface{}, namespace string) error {
|
||||
return wmi.QueryNamespace(query, dst, namespace)
|
||||
}
|
||||
|
||||
// QueryAll returns a query string that selects all fields from the given
|
||||
// struct type.
|
||||
// Deprecated: Use QueryAllForClass instead.
|
||||
func QueryAll(src interface{}, logger log.Logger) string {
|
||||
var b bytes.Buffer
|
||||
b.WriteString("SELECT * FROM ")
|
||||
|
||||
Reference in New Issue
Block a user