Documentation
¶
Overview ¶
Package fetch provides the fetch() API for transpiled TypeScript code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestInit ¶
RequestInit holds options for a fetch request.
type Response ¶
type Response struct {
Status int
StatusText string
Ok bool
Headers http.Header
// contains filtered or unexported fields
}
Response wraps an HTTP response with JS-like methods.
func Fetch ¶
func Fetch(url string, opts ...RequestInit) (*Response, error)
Fetch performs an HTTP request (like globalThis.fetch).
Click to show internal directories.
Click to hide internal directories.