Help us shape the future of Go! Take the 2026 Go Developer Survey

httpx

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = &http.Client{
	Timeout: 30 * time.Second,
}

Functions

func WriteJSON

func WriteJSON(w http.ResponseWriter, statusCode int, message string, data any)

Types

type Response

type Response struct {
	Message string `json:"message"`
	Data    any    `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL