Skip to content

Commit 9ff6ec6

Browse files
committed
docs: updates build tags and adds warning for FOSDEM video
1 parent ac1cfbf commit 9ff6ec6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222

2323
## How?
2424

25-
Talk given at the Go devroom of FOSDEM 2021 explaining how `go-wasm-http-server` works:
25+
Below is a talk given at the Go devroom of FOSDEM 2021 explaining how `go-wasm-http-server` works.
26+
27+
> [!WARNING]
28+
> `go-wasm-http-server` has suffered major changes since this talk, be aware that it is not accurate anymore on several aspects.
29+
> Please refer to the documentation below for up to date usage of `go-wasm-http-server`.
2630
2731
[![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)
2832

@@ -47,7 +51,7 @@ In your Go code, replace [`http.ListenAndServe()`](https://pkg.go.dev/net/http#L
4751

4852
📄 `server.go`
4953
```go
50-
// +build !js,!wasm
54+
//go:build !js && !wasm
5155

5256
package main
5357

@@ -66,7 +70,7 @@ becomes:
6670

6771
📄 `server_js_wasm.go`
6872
```go
69-
// +build js,wasm
73+
//go:build js && wasm
7074

7175
package main
7276

0 commit comments

Comments
 (0)