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? And if so are there any articles > describing how to do this? > > Asks in advance, > > Daryl > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ea75cbfc-651e-4ddc-b647-7311a58bff15n%40googlegroups.com.