tinygo-org / net

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

Support Go 1.22 net/http #27

Open zztkm opened 5 months ago

zztkm commented 5 months ago

Summary

I want to build a program with TinyGo that uses the enhanced routing features in Go 1.22.

Background

Thank you for your wonderful work on TinyGo.

scottfeldman commented 5 months ago

There are two options to bring in that support from 1.22.

First option is to update net/http in this repo to bring in the 1.22 updates. The net/http in this repo is a stripped down version of upstream net/http, last update was to 1.21.4.

The second option is to wait until the full upstream net/http package is working with TinyGo, unmodified. I started work on option 2 in https://github.com/tinygo-org/tinygo/pull/4187.

zztkm commented 5 months ago

Thanks for the reply. I have the option to build with Go, so I will choose Option 2.