Fixes build errors: GOOS=js GOARCH=wasm go build GOOS=wasip1 GOARCH=wasm go build Signed-off-by: Christian Stewart <christian@aperture.us>
16 lines
336 B
Go
16 lines
336 B
Go
//
|
|
// 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.
|
|
//
|
|
|
|
package serial
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
func nativeOpen(portName string, mode *Mode) (Port, error) {
|
|
return nil, errors.New("nativeOpen is not supported on wasm")
|
|
}
|