Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions enumerator_unsupported_unix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright 2014-2024 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//

//go:build !linux && !darwin && !freebsd && !openbsd

package serial

import (
"errors"
)

func nativeGetPortsList() ([]string, error) {
return nil, errors.New("nativeGetPortsList is not currently supported on this OS")
}
17 changes: 17 additions & 0 deletions serial_unsupported_unix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Copyright 2014-2024 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//

//go:build !linux && !darwin && !freebsd && !openbsd

package serial

import (
"errors"
)

func nativeOpen(portName string, mode *Mode) (Port, error) {
return nil, errors.New("nativeOpen is not currently supported on this OS")
}