Re: [go-nuts] Re: Golang embed with http and middleware

2023-11-20 Thread Daryl Williams
Tamás, Thank you for your reply, I appreciate it. My confusion is more about how to use the embedded endpoints in a middleware chain. Do you know of any examples that do that? Thanks again for your response. Daryl On Nov 19, 2023, at 21:32, Tamás Gulácsi wrote:  You don't often get email fro

[go-nuts] Re: Golang embed with http and middleware

2023-11-19 Thread Tamás Gulácsi
https://blog.carlmjohnson.net/post/2021/how-to-use-go-embed/ is a more comprehensive article on using embed. Tamás Gulácsi a következőt írta (2023. november 20., hétfő, 6:28:44 UTC+1): > You can convert a io/fs.FS to a http FS with http.FS. > For an example, see https://stackoverflow.com/a/66248

[go-nuts] Re: Golang embed with http and middleware

2023-11-19 Thread Tamás Gulácsi
You can convert a io/fs.FS to a http FS with http.FS. For an example, see https://stackoverflow.com/a/66248259 Daryl Williams a következőt írta (2023. november 20., hétfő, 0:15:29 UTC+1): > I am trying to find out if the http server can work with the embed > filesystem and also use middleware?