package
0.0.0-20250307173044-634e8ce82c05
Repository: https://github.com/sapcc/go-bits.git
Documentation: pkg.go.dev

# Functions

ErrorText produces an error response with HTTP status code 500 and Content-Type text/plain if the given error is non-nil.
JSON serializes the given data into an HTTP response body The `code` argument specifies the HTTP response code, usually 200.