Versions in this module Expand all Collapse all v3 v3.2.3 Jun 19, 2025 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.2.2 Jun 17, 2025 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.2.1 Mar 28, 2025 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.2.0 Aug 9, 2024 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.1.1 Mar 11, 2024 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.1.0 Dec 12, 2023 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.0.2 Jan 24, 2023 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.0.1 Jan 23, 2023 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils v3.0.0 Feb 3, 2022 GO-2025-3798 GO-2025-3798: Leaks private key in certs in github.com/juju/utils Changes in this version + func HandleErrors(errToResp ErrorToResponse) func(handle ErrorHandler) http.Handler + func HandleJSON(errToResp ErrorToResponse) func(handle JSONHandler) http.Handler + func WriteError(errToResp ErrorToResponse) func(w http.ResponseWriter, err error) + func WriteJSON(w http.ResponseWriter, code int, val interface{}) error + type ErrorHandler func(http.ResponseWriter, *http.Request) error + type ErrorToResponse func(err error) (httpStatus int, errorBody interface{}) + type JSONHandler func(http.Header, *http.Request) (interface{}, error) Other modules containing this package github.com/juju/utils/v4