chore: fix doc comments for 1.19

This commit is contained in:
andig 2022-08-09 21:59:18 +02:00
parent a2c822516a
commit c7566a26e6
5 changed files with 5 additions and 9 deletions

View file

@ -1,6 +1,5 @@
// Code generated by "enumer -type ObservationID"; DO NOT EDIT.
//
package easee
import (

View file

@ -247,9 +247,6 @@ func (c *EEBus) Enabled() (bool, error) {
}
// Enable implements the api.Charger interface
// enable
// true: allow to EV to draw power
// false: do not allow the EV to draw power
func (c *EEBus) Enable(enable bool) error {
data, err := c.cc.GetData()
if err != nil {

View file

@ -394,8 +394,7 @@ func (c *CmdConfigure) paramChoiceValues(params []templates.Param, name string)
}
// processConfig processes an EVCC configuration item
// Returns:
// a map with param name and values
// Returns a map with param name and values
func (c *CmdConfigure) processConfig(templateItem *templates.Template, deviceCategory DeviceCategory) map[string]interface{} {
fmt.Println()
fmt.Println(c.localizedString("Config_Title", nil))

View file

@ -21,8 +21,9 @@ type route struct {
HandlerFunc http.HandlerFunc
}
//lint:ignore U1000 if needed
// routeLogger traces matched routes including their executing time
//
//lint:ignore U1000 if needed
func routeLogger(inner http.Handler) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
start := time.Now()

View file

@ -5,7 +5,7 @@ import (
"strings"
)
// ensureVehicleWithFeature extracts VIN from list of VINs returned from `list`` function
// ensureVehicleWithFeature extracts VIN from list of VINs returned from `list` function
func ensureVehicle(vin string, list func() ([]string, error)) (string, error) {
vin, _, err := ensureVehicleWithFeature(vin, list, func(v string) (string, string) {
return v, ""
@ -14,7 +14,7 @@ func ensureVehicle(vin string, list func() ([]string, error)) (string, error) {
return vin, err
}
// ensureVehicleWithFeature extracts VIN and feature from list of vehicles of type V returned from `list`` function
// ensureVehicleWithFeature extracts VIN and feature from list of vehicles of type V returned from `list` function
func ensureVehicleWithFeature[Vehicle, Feature any](
vin string,
list func() ([]Vehicle, error),