package
3.0.0
Repository: https://github.com/onsdigital/dp-net.git
Documentation: pkg.go.dev

# Functions

GenerateETag generates a SHA-1 hash of the body with type []byte.
SetETag sets the new eTag of the resource in the header.
WriteJSON set the content type header to JSON, writes the response object as json and sets the http status code.

# Constants

ContentType header possible values.
ContentType header possible values.
No description provided by the author

# Variables

No description provided by the author

# Structs

OnsJSONEncoder is a JSON encoder.

# Interfaces

JSONEncoder interface defining a JSON encoder.