mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
14 lines
206 B
Go
14 lines
206 B
Go
package firmata
|
|
|
|
type sp struct{}
|
|
|
|
func (s sp) Write(b []byte) (int, error) {
|
|
return len(b), nil
|
|
}
|
|
func (s sp) Read(b []byte) (int, error) {
|
|
return len(b), nil
|
|
}
|
|
func (s sp) Close() error {
|
|
return nil
|
|
}
|