Closed wkhere closed 5 years ago
Glad to see some interest. Just pushed a potential fix. A noob mistake 😅
Haha and cool to see quick response!
But,
go get -u github.com/Mitranim/gow
# github.com/Mitranim/gow
go/src/github.com/Mitranim/gow/const_bsd.go:5:26: undefined: unix.TIOCGETA
go/src/github.com/Mitranim/gow/const_bsd.go:6:27: undefined: unix.TIOCSETA
go/src/github.com/Mitranim/gow/const_linux.go:5:7: ioctlReadTermios redeclared in this block
previous declaration at go/src/github.com/Mitranim/gow/const_bsd.go:5:26
go/src/github.com/Mitranim/gow/const_linux.go:6:7: ioctlWriteTermios redeclared in this block
previous declaration at go/src/github.com/Mitranim/gow/const_bsd.go:6:27
'bsd' is not a valid GOOS, it's separately 'freebsd' & 'darwin', you'd probably need to put explicit // +build ...
line for the relevant bsd-descendant OSes (also: dragonfly, netbsd, openbsd, I am not saying they for sure have this constant but they may)
Btw you know that you can crosscompile by yourself with GOOS=linux go build
Also GOOS=... go doc ...
will show you different docs for each OS, maybe this is fastest way to verify where your constant really exist.
For me, the last commit a0a93df compiles only for freebsd, not for linux and darwin.
Yeah I forgot to add the +build
pragma. Too twitchy and hopped-up on ☕️. Thanks for the cross-compile tip. Just pushed another fix, GOOS=linux go build
works on my system now.
Ok now got it, thx
Hi!
Got your announcement on nuts list, wanted to examine the tool and so far it can't compile:
Wild guess would be that TIOCSETA is "darwinism/bsdism" ;)...