From 05cd62c624c9bfd2db77a3ae9c2a1f3fb271aaef Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 15 Jun 2019 15:49:21 +0200 Subject: [PATCH] fix(pkg/logfile): description for exported functions --- pkg/logfile/logfile.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/logfile/logfile.go b/pkg/logfile/logfile.go index 246c1d0..2ab06bd 100644 --- a/pkg/logfile/logfile.go +++ b/pkg/logfile/logfile.go @@ -74,6 +74,8 @@ func ReadTemperatures(temperatureLogfile string) ([]*types.Temperature, error) { return temperatures, nil } +// ReadTemperaturesChannel reads temperatures from a channel until it is closed +// and returns the temperature. func ReadTemperaturesChannel(temperatureChannel <-chan *types.Temperature) []*types.Temperature { temperatures := make([]*types.Temperature, 0) for {