blob: 97037daa5aadb3538c52a1ce12048a4b26e8a76e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
---
tags:
- golang
- howto
---
Multiple times I wish I had remembered this one-liner, now I come across it again whilst reading about Golang/WASM. So that's where it was from! Here it is:
```sh
# install goexec: go install github.com/shurcooL/goexec@latest
goexec 'http.ListenAndServe(`:8080`, http.FileServer(http.Dir(`.`)))'
```
|