Registry / networking / onsdigital-dp-net-v2

onsdigital-dp-net-v2

JSON →
library2.22.0gogounverified

Provides networking utilities and HTTP client/server helpers for the ONS Digital Publishing platform.

go get github.com/ONSdigital/dp-net/v2
INSTALL
IMPORT
SIG · ONSDIGITAL-DP-NET-
O
onsdigital-dp-net-v2
networkinggov2.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dpnet
github.com/ONSdigital/dp-net/v2

Minimal HTTP server using dp-net's ListenAndServe.

package main import ( "fmt" "net/http" dpnet "github.com/ONSdigital/dp-net/v2" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, world!") }) dpnet.ListenAndServe(":8080", nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.22.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
onsdigital-dp-net-v2 — go get onsdigital-dp-net-v2 · libregistry