mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
18 lines
241 B
Go
18 lines
241 B
Go
// +build js,wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"github.com/johanbrandhorst/wasm-experiments/fetch/fetch"
|
|
)
|
|
|
|
func main() {
|
|
c := http.Client{
|
|
Transport: &fetch.Transport{},
|
|
}
|
|
fmt.Println(c.Get("https://api.github.com"))
|
|
}
|