tinygo-org / net

Port of Go's "net" package to work with TinyGo on embedded processors.
https://tinygo.org
BSD 2-Clause "Simplified" License
23 stars 9 forks source link

add NOP netdev as default #29

Closed scottfeldman closed 4 months ago

scottfeldman commented 6 months ago

Initialize netdev to dummy NOP netdev that gracefully errors out all netdev interface calls. This is to catch cases where useNetdev() was not called by the app to set netdev.

leongross commented 6 months ago

I think until https://github.com/tinygo-org/tinygo/pull/4273 is fully functional this is a good work for now

leongross commented 6 months ago

some gofumpt issues, but I just realized that there is no ci so feel free to ignore these nits :)

deadprogram commented 4 months ago

@scottfeldman could you please run go fmt on these changes?

deadprogram commented 4 months ago

Actually @leongross I ran gofmt and it did not find anything needing formatting.

Hence I will merge this now.

Thanks @scottfeldman