docs: updates build tags and adds warning for FOSDEM video

This commit is contained in:
Nicolas Lepage 2025-02-13 10:41:03 +01:00
parent ac1cfbfe8a
commit 9ff6ec615a
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F

View File

@ -22,7 +22,11 @@
## How? ## How?
Talk given at the Go devroom of FOSDEM 2021 explaining how `go-wasm-http-server` works: Below is a talk given at the Go devroom of FOSDEM 2021 explaining how `go-wasm-http-server` works.
> [!WARNING]
> `go-wasm-http-server` has suffered major changes since this talk, be aware that it is not accurate anymore on several aspects.
> Please refer to the documentation below for up to date usage of `go-wasm-http-server`.
[![Deploy a Go HTTP server in your browser Youtube link](https://raw.githubusercontent.com/nlepage/go-wasm-http-talk/main/youtube.png)](https://youtu.be/O2RB_8ircdE) [![Deploy a Go HTTP server in your browser Youtube link](https://raw.githubusercontent.com/nlepage/go-wasm-http-talk/main/youtube.png)](https://youtu.be/O2RB_8ircdE)
@ -47,7 +51,7 @@ In your Go code, replace [`http.ListenAndServe()`](https://pkg.go.dev/net/http#L
📄 `server.go` 📄 `server.go`
```go ```go
// +build !js,!wasm //go:build !js && !wasm
package main package main
@ -66,7 +70,7 @@ becomes:
📄 `server_js_wasm.go` 📄 `server_js_wasm.go`
```go ```go
// +build js,wasm //go:build js && wasm
package main package main