Export newUnameCollector function in uname.go (#3227)
Some checks failed
golangci-lint / lint (push) Has been cancelled

Signed-off-by: Vitaly Orlov <orloff.v@gmail.com>
This commit is contained in:
Vitaly Orlov 2025-01-25 20:52:46 +01:00 committed by GitHub
parent c46d1f23d0
commit 810510e12b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,11 +50,11 @@ type uname struct {
}
func init() {
registerCollector("uname", defaultEnabled, newUnameCollector)
registerCollector("uname", defaultEnabled, NewUnameCollector)
}
// NewUnameCollector returns new unameCollector.
func newUnameCollector(logger *slog.Logger) (Collector, error) {
func NewUnameCollector(logger *slog.Logger) (Collector, error) {
return &unameCollector{logger}, nil
}