From 1c5bf369faf74735638c9618962f43024d0a7797 Mon Sep 17 00:00:00 2001 From: Arkadiusz Drabczyk Date: Thu, 28 Sep 2023 11:31:40 +0200 Subject: [PATCH] feat: restore returning struct from New() --- pkg/candevice/device_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/candevice/device_linux.go b/pkg/candevice/device_linux.go index 89c55a8..621e3c5 100644 --- a/pkg/candevice/device_linux.go +++ b/pkg/candevice/device_linux.go @@ -52,7 +52,7 @@ type CanDevice interface { } // Creates a handle to a CAN device specified by name, e.g. can0. -func New(deviceName string) (CanDevice, error) { +func New(deviceName string) (*Device, error) { iface, err := net.InterfaceByName(deviceName) if err != nil { return nil, err