This repository has been archived on 2025-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Files
PKGBUILD/pkg/internal/collect/errors.go
Markus Pesch 5220eac16b fix: breaking changes
changes:
- remove remote operations
- add function to write measured values into a channel
- add get humidity sensors from config
- add get temperature sensors from config
- remove FileLogger
- exclude some functions from pkf into internal
2019-06-13 22:15:48 +02:00

17 lines
261 B
Go

package collect
func Errors(errorChannel <-chan error) []error {
errorList := make([]error, 0)
for {
select {
case err, more := <-errorChannel:
if more {
errorList = append(errorList, err)
continue
}
default:
return errorList
}
}
}