mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
docs: updates build tags and adds warning for FOSDEM video
This commit is contained in:
parent
ac1cfbfe8a
commit
9ff6ec615a
10
README.md
10
README.md
@ -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`.
|
||||||
|
|
||||||
[](https://youtu.be/O2RB_8ircdE)
|
[](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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user