{"modulePath":"github.com/labstack/echo/v4","version":"v4.16.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echo\n\nPackage echo implements high performance, minimalist Go web framework.\n\nExample:\n\n\tpackage main\n\n\timport (\n\t  \"net/http\"\n\n\t  \"github.com/labstack/echo/v4\"\n\t  \"github.com/labstack/echo/v4/middleware\"\n\t)\n\n\t// Handler\n\tfunc hello(c echo.Context) error {\n\t  return c.String(http.StatusOK, \"Hello, World!\")\n\t}\n\n\tfunc main() {\n\t  // Echo instance\n\t  e := echo.New()\n\n\t  // Middleware\n\t  e.Use(middleware.Logger())\n\t  e.Use(middleware.Recover())\n\n\t  // Routes\n\t  e.GET(\"/\", hello)\n\n\t  // Start server\n\t  e.Logger.Fatal(e.Start(\":1323\"))\n\t}\n\nLearn more at [https://echo.labstack.com](https://echo.labstack.com)\n\n## Constants\n\n```go\nconst (\n\tTimeLayoutUnixTime      = TimeLayout(\"UnixTime\")      // Unix timestamp in seconds\n\tTimeLayoutUnixTimeMilli = TimeLayout(\"UnixTimeMilli\") // Unix timestamp in milliseconds\n\tTimeLayoutUnixTimeNano  = TimeLayout(\"UnixTimeNano\")  // Unix timestamp in nanoseconds\n)\n```\nTimeLayout constants for parsing Unix timestamps in different precisions.\n\n```go\nconst (\n\tCONNECT = http.MethodConnect\n\tDELETE  = http.MethodDelete\n\tGET     = http.MethodGet\n\tHEAD    = http.MethodHead\n\tOPTIONS = http.MethodOptions\n\tPATCH   = http.MethodPatch\n\tPOST    = http.MethodPost\n\t// PROPFIND = \"PROPFIND\"\n\tPUT   = http.MethodPut\n\tTRACE = http.MethodTrace\n)\n```\nHTTP methods NOTE: Deprecated, please use the stdlib constants directly instead.\n\n```go\nconst (\n\t// MIMEApplicationJSON JavaScript Object Notation (JSON) https://www.rfc-editor.org/rfc/rfc8259\n\tMIMEApplicationJSON = \"application/json\"\n\t// Deprecated: Please use MIMEApplicationJSON instead. JSON should be encoded using UTF-8 by default.\n\t// No \"charset\" parameter is defined for this registration.\n\t// Adding one really has no effect on compliant recipients.\n\t// See RFC 8259, section 8.1. https://datatracker.ietf.org/doc/html/rfc8259#section-8.1\n\tMIMEApplicationJSONCharsetUTF8       = MIMEApplicationJSON + \"; \" + charsetUTF8\n\tMIMEApplicationJavaScript            = \"application/javascript\"\n\tMIMEApplicationJavaScriptCharsetUTF8 = MIMEApplicationJavaScript + \"; \" + charsetUTF8\n\tMIMEApplicationXML                   = \"application/xml\"\n\tMIMEApplicationXMLCharsetUTF8        = MIMEApplicationXML + \"; \" + charsetUTF8\n\tMIMETextXML                          = \"text/xml\"\n\tMIMETextXMLCharsetUTF8               = MIMETextXML + \"; \" + charsetUTF8\n\tMIMEApplicationForm                  = \"application/x-www-form-urlencoded\"\n\tMIMEApplicationProtobuf              = \"application/protobuf\"\n\tMIMEApplicationMsgpack               = \"application/msgpack\"\n\tMIMETextHTML                         = \"text/html\"\n\tMIMETextHTMLCharsetUTF8              = MIMETextHTML + \"; \" + charsetUTF8\n\tMIMETextPlain                        = \"text/plain\"\n\tMIMETextPlainCharsetUTF8             = MIMETextPlain + \"; \" + charsetUTF8\n\tMIMEMultipartForm                    = \"multipart/form-data\"\n\tMIMEOctetStream                      = \"application/octet-stream\"\n)\n```\nMIME types\n\n```go\nconst (\n\n\t// PROPFIND Method can be used on collection and property resources.\n\tPROPFIND = \"PROPFIND\"\n\t// REPORT Method can be used to get information about a resource, see rfc 3253\n\tREPORT = \"REPORT\"\n\t// RouteNotFound is special method type for routes handling \"route not found\" (404) cases\n\tRouteNotFound = \"echo_route_not_found\"\n)\n```\n\n```go\nconst (\n\tHeaderAccept         = \"Accept\"\n\tHeaderAcceptEncoding = \"Accept-Encoding\"\n\t// HeaderAllow is the name of the \"Allow\" header field used to list the set of methods\n\t// advertised as supported by the target resource. Returning an Allow header is mandatory\n\t// for status 405 (method not found) and useful for the OPTIONS method in responses.\n\t// See RFC 7231: https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1\n\tHeaderAllow               = \"Allow\"\n\tHeaderAuthorization       = \"Authorization\"\n\tHeaderContentDisposition  = \"Content-Disposition\"\n\tHeaderContentEncoding     = \"Content-Encoding\"\n\tHeaderContentLength       = \"Content-Length\"\n\tHeaderContentType         = \"Content-Type\"\n\tHeaderCookie              = \"Cookie\"\n\tHeaderSetCookie           = \"Set-Cookie\"\n\tHeaderIfModifiedSince     = \"If-Modified-Since\"\n\tHeaderLastModified        = \"Last-Modified\"\n\tHeaderLocation            = \"Location\"\n\tHeaderRetryAfter          = \"Retry-After\"\n\tHeaderUpgrade             = \"Upgrade\"\n\tHeaderVary                = \"Vary\"\n\tHeaderWWWAuthenticate     = \"WWW-Authenticate\"\n\tHeaderXForwardedFor       = \"X-Forwarded-For\"\n\tHeaderXForwardedProto     = \"X-Forwarded-Proto\"\n\tHeaderXForwardedProtocol  = \"X-Forwarded-Protocol\"\n\tHeaderXForwardedSsl       = \"X-Forwarded-Ssl\"\n\tHeaderXUrlScheme          = \"X-Url-Scheme\"\n\tHeaderXHTTPMethodOverride = \"X-HTTP-Method-Override\"\n\tHeaderXRealIP             = \"X-Real-Ip\"\n\tHeaderXRequestID          = \"X-Request-Id\"\n\tHeaderXCorrelationID      = \"X-Correlation-Id\"\n\tHeaderXRequestedWith      = \"X-Requested-With\"\n\tHeaderServer              = \"Server\"\n\n\t// HeaderOrigin request header indicates the origin (scheme, hostname, and port) that caused the request.\n\t// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin\n\tHeaderOrigin       = \"Origin\"\n\tHeaderCacheControl = \"Cache-Control\"\n\tHeaderConnection   = \"Connection\"\n\n\t// Access control\n\tHeaderAccessControlRequestMethod    = \"Access-Control-Request-Method\"\n\tHeaderAccessControlRequestHeaders   = \"Access-Control-Request-Headers\"\n\tHeaderAccessControlAllowOrigin      = \"Access-Control-Allow-Origin\"\n\tHeaderAccessControlAllowMethods     = \"Access-Control-Allow-Methods\"\n\tHeaderAccessControlAllowHeaders     = \"Access-Control-Allow-Headers\"\n\tHeaderAccessControlAllowCredentials = \"Access-Control-Allow-Credentials\"\n\tHeaderAccessControlExposeHeaders    = \"Access-Control-Expose-Headers\"\n\tHeaderAccessControlMaxAge           = \"Access-Control-Max-Age\"\n\n\t// Security\n\tHeaderStrictTransportSecurity         = \"Strict-Transport-Security\"\n\tHeaderXContentTypeOptions             = \"X-Content-Type-Options\"\n\tHeaderXXSSProtection                  = \"X-XSS-Protection\"\n\tHeaderXFrameOptions                   = \"X-Frame-Options\"\n\tHeaderContentSecurityPolicy           = \"Content-Security-Policy\"\n\tHeaderContentSecurityPolicyReportOnly = \"Content-Security-Policy-Report-Only\"\n\tHeaderXCSRFToken                      = \"X-CSRF-Token\"\n\tHeaderReferrerPolicy                  = \"Referrer-Policy\"\n\n\t// HeaderSecFetchSite fetch metadata request header indicates the relationship between a request initiator's\n\t// origin and the origin of the requested resource.\n\t// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-Fetch-Site\n\tHeaderSecFetchSite = \"Sec-Fetch-Site\"\n)\n```\nHeaders\n\n```go\nconst (\n\t// ContextKeyHeaderAllow is set by Router for getting value for `Allow` header in later stages of handler call chain.\n\t// Allow header is mandatory for status 405 (method not found) and useful for OPTIONS method requests.\n\t// It is added to context only when Router does not find matching method handler for request.\n\tContextKeyHeaderAllow = \"echo_header_allow\"\n)\n```\n\n```go\nconst (\n\t// Version of Echo\n\tVersion = \"4.16.6\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrBadRequest                    = NewHTTPError(http.StatusBadRequest)                    // HTTP 400 Bad Request\n\tErrUnauthorized                  = NewHTTPError(http.StatusUnauthorized)                  // HTTP 401 Unauthorized\n\tErrPaymentRequired               = NewHTTPError(http.StatusPaymentRequired)               // HTTP 402 Payment Required\n\tErrForbidden                     = NewHTTPError(http.StatusForbidden)                     // HTTP 403 Forbidden\n\tErrNotFound                      = NewHTTPError(http.StatusNotFound)                      // HTTP 404 Not Found\n\tErrMethodNotAllowed              = NewHTTPError(http.StatusMethodNotAllowed)              // HTTP 405 Method Not Allowed\n\tErrNotAcceptable                 = NewHTTPError(http.StatusNotAcceptable)                 // HTTP 406 Not Acceptable\n\tErrProxyAuthRequired             = NewHTTPError(http.StatusProxyAuthRequired)             // HTTP 407 Proxy AuthRequired\n\tErrRequestTimeout                = NewHTTPError(http.StatusRequestTimeout)                // HTTP 408 Request Timeout\n\tErrConflict                      = NewHTTPError(http.StatusConflict)                      // HTTP 409 Conflict\n\tErrGone                          = NewHTTPError(http.StatusGone)                          // HTTP 410 Gone\n\tErrLengthRequired                = NewHTTPError(http.StatusLengthRequired)                // HTTP 411 Length Required\n\tErrPreconditionFailed            = NewHTTPError(http.StatusPreconditionFailed)            // HTTP 412 Precondition Failed\n\tErrStatusRequestEntityTooLarge   = NewHTTPError(http.StatusRequestEntityTooLarge)         // HTTP 413 Payload Too Large\n\tErrRequestURITooLong             = NewHTTPError(http.StatusRequestURITooLong)             // HTTP 414 URI Too Long\n\tErrUnsupportedMediaType          = NewHTTPError(http.StatusUnsupportedMediaType)          // HTTP 415 Unsupported Media Type\n\tErrRequestedRangeNotSatisfiable  = NewHTTPError(http.StatusRequestedRangeNotSatisfiable)  // HTTP 416 Range Not Satisfiable\n\tErrExpectationFailed             = NewHTTPError(http.StatusExpectationFailed)             // HTTP 417 Expectation Failed\n\tErrTeapot                        = NewHTTPError(http.StatusTeapot)                        // HTTP 418 I'm a teapot\n\tErrMisdirectedRequest            = NewHTTPError(http.StatusMisdirectedRequest)            // HTTP 421 Misdirected Request\n\tErrUnprocessableEntity           = NewHTTPError(http.StatusUnprocessableEntity)           // HTTP 422 Unprocessable Entity\n\tErrLocked                        = NewHTTPError(http.StatusLocked)                        // HTTP 423 Locked\n\tErrFailedDependency              = NewHTTPError(http.StatusFailedDependency)              // HTTP 424 Failed Dependency\n\tErrTooEarly                      = NewHTTPError(http.StatusTooEarly)                      // HTTP 425 Too Early\n\tErrUpgradeRequired               = NewHTTPError(http.StatusUpgradeRequired)               // HTTP 426 Upgrade Required\n\tErrPreconditionRequired          = NewHTTPError(http.StatusPreconditionRequired)          // HTTP 428 Precondition Required\n\tErrTooManyRequests               = NewHTTPError(http.StatusTooManyRequests)               // HTTP 429 Too Many Requests\n\tErrRequestHeaderFieldsTooLarge   = NewHTTPError(http.StatusRequestHeaderFieldsTooLarge)   // HTTP 431 Request Header Fields Too Large\n\tErrUnavailableForLegalReasons    = NewHTTPError(http.StatusUnavailableForLegalReasons)    // HTTP 451 Unavailable For Legal Reasons\n\tErrInternalServerError           = NewHTTPError(http.StatusInternalServerError)           // HTTP 500 Internal Server Error\n\tErrNotImplemented                = NewHTTPError(http.StatusNotImplemented)                // HTTP 501 Not Implemented\n\tErrBadGateway                    = NewHTTPError(http.StatusBadGateway)                    // HTTP 502 Bad Gateway\n\tErrServiceUnavailable            = NewHTTPError(http.StatusServiceUnavailable)            // HTTP 503 Service Unavailable\n\tErrGatewayTimeout                = NewHTTPError(http.StatusGatewayTimeout)                // HTTP 504 Gateway Timeout\n\tErrHTTPVersionNotSupported       = NewHTTPError(http.StatusHTTPVersionNotSupported)       // HTTP 505 HTTP Version Not Supported\n\tErrVariantAlsoNegotiates         = NewHTTPError(http.StatusVariantAlsoNegotiates)         // HTTP 506 Variant Also Negotiates\n\tErrInsufficientStorage           = NewHTTPError(http.StatusInsufficientStorage)           // HTTP 507 Insufficient Storage\n\tErrLoopDetected                  = NewHTTPError(http.StatusLoopDetected)                  // HTTP 508 Loop Detected\n\tErrNotExtended                   = NewHTTPError(http.StatusNotExtended)                   // HTTP 510 Not Extended\n\tErrNetworkAuthenticationRequired = NewHTTPError(http.StatusNetworkAuthenticationRequired) // HTTP 511 Network Authentication Required\n\n\tErrValidatorNotRegistered = errors.New(\"validator not registered\")\n\tErrRendererNotRegistered  = errors.New(\"renderer not registered\")\n\tErrInvalidRedirectCode    = errors.New(\"invalid redirect status code\")\n\n\t// ErrInvalidJSONPCallback is wrapped in the 400 Bad Request error that Context.JSONP and Context.JSONPBlob\n\t// return when the callback is not a valid JSONP function name. See Context.JSONP.\n\tErrInvalidJSONPCallback   = errors.New(\"invalid JSONP callback\")\n\tErrCookieNotFound         = errors.New(\"cookie not found\")\n\tErrInvalidCertOrKeyType   = errors.New(\"invalid cert or key type, must be string or []byte\")\n\tErrInvalidListenerNetwork = errors.New(\"invalid listener network\")\n)\n```\nErrors\n\n```go\nvar ErrInvalidKeyType = errors.New(\"invalid key type\")\n```\nErrInvalidKeyType is error that is returned when the value is not castable to expected type.\n\n```go\nvar ErrNonExistentKey = errors.New(\"non existent key\")\n```\nErrNonExistentKey is error that is returned when key does not exist\n\n```go\nvar MethodNotAllowedHandler = func(c Context) error {\n\n\trouterAllowMethods, ok := c.Get(ContextKeyHeaderAllow).(string)\n\tif ok \u0026\u0026 routerAllowMethods != \"\" {\n\t\tc.Response().Header().Set(HeaderAllow, routerAllowMethods)\n\t}\n\treturn ErrMethodNotAllowed\n}\n```\nMethodNotAllowedHandler is the handler thar router uses in case there was no matching route found but there was another matching routes for that requested URL. Returns an error that results HTTP 405 Method Not Allowed status code.\n\n```go\nvar NotFoundHandler = func(c Context) error {\n\treturn ErrNotFound\n}\n```\nNotFoundHandler is the handler that router uses in case there was no matching route found. Returns an error that results HTTP 404 status code.\n\n## Functions\n\n```go\nfunc ContextGet[T any](c Context, key string) (T, error)\n```\nContextGet retrieves a value from the context store or ErrNonExistentKey error the key is missing. Returns ErrInvalidKeyType error if the value is not castable to type T.\n\n```go\nfunc ContextGetOr[T any](c Context, key string, defaultValue T) (T, error)\n```\nContextGetOr retrieves a value from the context store or returns a default value when the key is missing. Returns ErrInvalidKeyType error if the value is not castable to type T.\n\n```go\nfunc FormParam[T any](c Context, key string, opts ...any) (T, error)\n```\nFormParam extracts and parses a single form value from the request by key. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the form field exists but has an empty value, the zero value of type T is returned\n\twith no error. For example, an empty form field returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc FormParamOr[T any](c Context, key string, defaultValue T, opts ...any) (T, error)\n```\nFormParamOr extracts and parses a single form value from the request by key. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails or form parsing errors occur.\n\nExample:\n\n\tlimit, err := echo.FormValueOr[int](c, \"limit\", 100)\n\t// If \"limit\" is missing: returns (100, nil)\n\t// If \"limit\" is \"50\": returns (50, nil)\n\t// If \"limit\" is \"abc\": returns (100, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc FormParams[T any](c Context, key string, opts ...any) ([]T, error)\n```\nFormParams extracts and parses all values for a form values key as a slice. It returns the typed slice and an error if binding any value fails. Returns ErrNonExistentKey if parameter not found.\n\nSee ParseValues for supported types and options\n\n```go\nfunc FormParamsOr[T any](c Context, key string, defaultValue []T, opts ...any) ([]T, error)\n```\nFormParamsOr extracts and parses all values for a form values key as a slice. Returns defaultValue if the parameter is not found. Returns an error only if parsing any value fails or form parsing errors occur.\n\nExample:\n\n\ttags, err := echo.FormParamsOr[string](c, \"tags\", []string{})\n\t// If \"tags\" is missing: returns ([], nil)\n\t// If form parsing fails: returns (nil, error)\n\nSee ParseValues for supported types and options\n\n```go\nfunc GetPath(r *http.Request) string\n```\nGetPath returns RawPath, if it's empty returns Path from URL Difference between RawPath and Path is:\n\n  - Path is where request path is stored. Value is stored in decoded form: /%47%6f%2f becomes /Go/.\n  - RawPath is an optional field which only gets set if the default encoding is different from Path.\n\n```go\nfunc MustSubFS(currentFs fs.FS, fsRoot string) fs.FS\n```\nMustSubFS creates sub FS from current filesystem or panic on failure. Panic happens when \\`fsRoot\\` contains invalid path according to \\`fs.ValidPath\\` rules.\n\nMustSubFS is helpful when dealing with \\`embed.FS\\` because for example \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix. In that case use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path.\n\n```go\nfunc NewBindingError(sourceParam string, values []string, message interface{}, internalError error) error\n```\nNewBindingError creates new instance of binding error\n\n```go\nfunc ParseValue[T any](value string, opts ...any) (T, error)\n```\nParseValue parses value to generic type\n\nTypes that are supported:\n\n  - bool\n  - float32\n  - float64\n  - int\n  - int8\n  - int16\n  - int32\n  - int64\n  - uint\n  - uint8/byte\n  - uint16\n  - uint32\n  - uint64\n  - string\n  - echo.BindUnmarshaler interface\n  - encoding.TextUnmarshaler interface\n  - json.Unmarshaler interface\n  - time.Duration\n  - time.Time use echo.TimeOpts or echo.TimeLayout to set time parsing configuration\n\n```go\nfunc ParseValueOr[T any](value string, defaultValue T, opts ...any) (T, error)\n```\nParseValueOr parses value to generic type, when value is empty defaultValue is returned.\n\nTypes that are supported:\n\n  - bool\n  - float32\n  - float64\n  - int\n  - int8\n  - int16\n  - int32\n  - int64\n  - uint\n  - uint8/byte\n  - uint16\n  - uint32\n  - uint64\n  - string\n  - echo.BindUnmarshaler interface\n  - encoding.TextUnmarshaler interface\n  - json.Unmarshaler interface\n  - time.Duration\n  - time.Time use echo.TimeOpts or echo.TimeLayout to set time parsing configuration\n\n```go\nfunc ParseValues[T any](values []string, opts ...any) ([]T, error)\n```\nParseValues parses value to generic type slice. Same types are supported as ParseValue function but the result type is slice instead of scalar value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc ParseValuesOr[T any](values []string, defaultValue []T, opts ...any) ([]T, error)\n```\nParseValuesOr parses value to generic type slice, when value is empty defaultValue is returned. Same types are supported as ParseValue function but the result type is slice instead of scalar value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc PathParam[T any](c Context, paramName string, opts ...any) (T, error)\n```\nPathParam extracts and parses a path parameter from the context by name. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the parameter exists but has an empty value, the zero value of type T is returned\n\twith no error. For example, a path parameter with value \"\" returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc PathParamOr[T any](c Context, paramName string, defaultValue T, opts ...any) (T, error)\n```\nPathParamOr extracts and parses a path parameter from the context by name. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails (e.g., \"abc\" for int type).\n\nExample:\n\n\tid, err := echo.PathParamOr[int](c, \"id\", 0)\n\t// If \"id\" is missing: returns (0, nil)\n\t// If \"id\" is \"123\": returns (123, nil)\n\t// If \"id\" is \"abc\": returns (0, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParam[T any](c Context, key string, opts ...any) (T, error)\n```\nQueryParam extracts and parses a single query parameter from the request by key. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the parameter exists but has an empty value (?key=), the zero value of type T is returned\n\twith no error. For example, \"?count=\" returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nBehavior Summary:\n\n  - Missing key (?other=value): returns (zero, ErrNonExistentKey)\n  - Empty value (?key=): returns (zero, nil)\n  - Invalid value (?key=abc for int): returns (zero, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParamOr[T any](c Context, key string, defaultValue T, opts ...any) (T, error)\n```\nQueryParamOr extracts and parses a single query parameter from the request by key. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails (e.g., \"abc\" for int type).\n\nExample:\n\n\tpage, err := echo.QueryParamOr[int](c, \"page\", 1)\n\t// If \"page\" is missing: returns (1, nil)\n\t// If \"page\" is \"5\": returns (5, nil)\n\t// If \"page\" is \"abc\": returns (1, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParams[T any](c Context, key string, opts ...any) ([]T, error)\n```\nQueryParams extracts and parses all values for a query parameter key as a slice. It returns the typed slice and an error if binding any value fails. Returns ErrNonExistentKey if parameter not found.\n\nSee ParseValues for supported types and options\n\n```go\nfunc QueryParamsOr[T any](c Context, key string, defaultValue []T, opts ...any) ([]T, error)\n```\nQueryParamsOr extracts and parses all values for a query parameter key as a slice. Returns defaultValue if the parameter is not found. Returns an error only if parsing any value fails.\n\nExample:\n\n\tids, err := echo.QueryParamsOr[int](c, \"ids\", []int{})\n\t// If \"ids\" is missing: returns ([], nil)\n\t// If \"ids\" is \"1\u0026ids=2\": returns ([1, 2], nil)\n\t// If \"ids\" contains \"abc\": returns ([], BindingError)\n\nSee ParseValues for supported types and options\n\n## Types\n\n```go\ntype BindUnmarshaler interface {\n\t// UnmarshalParam decodes and assigns a value from an form or query param.\n\tUnmarshalParam(param string) error\n}\n```\nBindUnmarshaler is the interface used to wrap the UnmarshalParam method. Types that don't implement this, but do implement encoding.TextUnmarshaler will use that interface instead.\n\n```go\ntype Binder interface {\n\tBind(i interface{}, c Context) error\n}\n```\nBinder is the interface that wraps the Bind method.\n\n```go\ntype BindingError struct {\n\t// Field is the field name where value binding failed\n\tField string `json:\"field\"`\n\t*HTTPError\n\t// Values of parameter that failed to bind.\n\tValues []string `json:\"-\"`\n}\n```\nBindingError represents an error that occurred while binding request data.\n\n```go\nfunc (be *BindingError) Error() string\n```\nError returns error message\n\n```go\ntype Context interface {\n\t// Request returns `*http.Request`.\n\tRequest() *http.Request\n\n\t// SetRequest sets `*http.Request`.\n\tSetRequest(r *http.Request)\n\n\t// SetResponse sets `*Response`.\n\tSetResponse(r *Response)\n\n\t// Response returns `*Response`.\n\tResponse() *Response\n\n\t// IsTLS returns true if HTTP connection is TLS otherwise false.\n\tIsTLS() bool\n\n\t// IsWebSocket returns true if HTTP connection is WebSocket otherwise false.\n\tIsWebSocket() bool\n\n\t// Scheme returns the HTTP protocol scheme, `http` or `https`.\n\tScheme() string\n\n\t// RealIP returns the client IP from Echo#IPExtractor, or the connection peer\n\t// when no extractor is configured. Forwarding headers are ignored by default.\n\t// Applications behind proxies must configure an extractor that trusts only\n\t// their own proxies to recover individual client addresses.\n\tRealIP() string\n\n\t// Path returns the registered path for the handler.\n\tPath() string\n\n\t// SetPath sets the registered path for the handler.\n\tSetPath(p string)\n\n\t// Param returns path parameter by name.\n\tParam(name string) string\n\n\t// ParamNames returns path parameter names.\n\tParamNames() []string\n\n\t// SetParamNames sets path parameter names.\n\tSetParamNames(names ...string)\n\n\t// ParamValues returns path parameter values.\n\tParamValues() []string\n\n\t// SetParamValues sets path parameter values.\n\tSetParamValues(values ...string)\n\n\t// QueryParam returns the query param for the provided name.\n\tQueryParam(name string) string\n\n\t// QueryParams returns the query parameters as `url.Values`.\n\tQueryParams() url.Values\n\n\t// QueryString returns the URL query string.\n\tQueryString() string\n\n\t// FormValue returns the form field value for the provided name.\n\tFormValue(name string) string\n\n\t// FormParams returns the form parameters as `url.Values`.\n\tFormParams() (url.Values, error)\n\n\t// FormFile returns the multipart form file for the provided name.\n\tFormFile(name string) (*multipart.FileHeader, error)\n\n\t// MultipartForm returns the multipart form.\n\tMultipartForm() (*multipart.Form, error)\n\n\t// Cookie returns the named cookie provided in the request.\n\tCookie(name string) (*http.Cookie, error)\n\n\t// SetCookie adds a `Set-Cookie` header in HTTP response.\n\tSetCookie(cookie *http.Cookie)\n\n\t// Cookies returns the HTTP cookies sent with the request.\n\tCookies() []*http.Cookie\n\n\t// Get retrieves data from the context.\n\tGet(key string) any\n\n\t// Set saves data in the context.\n\tSet(key string, val any)\n\n\t// Bind binds path params, query params and the request body into provided type `i`. The default binder\n\t// binds body based on Content-Type header.\n\tBind(i any) error\n\n\t// Validate validates provided `i`. It is usually called after `Context#Bind()`.\n\t// Validator must be registered using `Echo#Validator`.\n\tValidate(i any) error\n\n\t// Render renders a template with data and sends a text/html response with status\n\t// code. Renderer must be registered using `Echo.Renderer`.\n\tRender(code int, name string, data any) error\n\n\t// HTML sends an HTTP response with status code.\n\tHTML(code int, html string) error\n\n\t// HTMLBlob sends an HTTP blob response with status code.\n\tHTMLBlob(code int, b []byte) error\n\n\t// String sends a string response with status code.\n\tString(code int, s string) error\n\n\t// JSON sends a JSON response with status code.\n\tJSON(code int, i any) error\n\n\t// JSONPretty sends a pretty-print JSON with status code.\n\tJSONPretty(code int, i any, indent string) error\n\n\t// JSONBlob sends a JSON blob response with status code.\n\tJSONBlob(code int, b []byte) error\n\n\t// JSONP sends a JSONP response with status code. It uses `callback` to construct\n\t// the JSONP payload.\n\t//\n\t// The callback must be empty, a JavaScript identifier or a dot-separated path of identifiers using only ASCII\n\t// letters, digits, `_` and `$`. Otherwise nothing is written and a 400 Bad Request error wrapping\n\t// ErrInvalidJSONPCallback is returned. The response has the `X-Content-Type-Options: nosniff` header.\n\t//\n\t// Any website can load a JSONP response with a \u003cscript\u003e tag, including the user's cookies. Do not use JSONP for\n\t// data that requires authentication; use JSON with CORS instead.\n\tJSONP(code int, callback string, i any) error\n\n\t// JSONPBlob sends a JSONP blob response with status code. It uses `callback`\n\t// to construct the JSONP payload. The callback is validated like in Context.JSONP.\n\tJSONPBlob(code int, callback string, b []byte) error\n\n\t// XML sends an XML response with status code.\n\tXML(code int, i any) error\n\n\t// XMLPretty sends a pretty-print XML with status code.\n\tXMLPretty(code int, i any, indent string) error\n\n\t// XMLBlob sends an XML blob response with status code.\n\tXMLBlob(code int, b []byte) error\n\n\t// Blob sends a blob response with status code and content type.\n\tBlob(code int, contentType string, b []byte) error\n\n\t// Stream sends a streaming response with status code and content type.\n\tStream(code int, contentType string, r io.Reader) error\n\n\t// File sends a response with the content of the file.\n\tFile(file string) error\n\n\t// Attachment sends a response as attachment, prompting client to save the\n\t// file.\n\tAttachment(file string, name string) error\n\n\t// Inline sends a response as inline, opening the file in the browser.\n\tInline(file string, name string) error\n\n\t// NoContent sends a response with no body and a status code.\n\tNoContent(code int) error\n\n\t// Redirect redirects the request to a provided URL with status code.\n\tRedirect(code int, url string) error\n\n\t// Error invokes the registered global HTTP error handler. Generally used by middleware.\n\t// A side-effect of calling global error handler is that now Response has been committed (sent to the client) and\n\t// middlewares up in chain can not change Response status code or Response body anymore.\n\t//\n\t// Avoid using this method in handlers as no middleware will be able to effectively handle errors after that.\n\tError(err error)\n\n\t// Handler returns the matched handler by router.\n\tHandler() HandlerFunc\n\n\t// SetHandler sets the matched handler by router.\n\tSetHandler(h HandlerFunc)\n\n\t// Logger returns the `Logger` instance.\n\tLogger() Logger\n\n\t// SetLogger Set the logger\n\tSetLogger(l Logger)\n\n\t// Echo returns the `Echo` instance.\n\tEcho() *Echo\n\n\t// Reset resets the context after request completes. It must be called along\n\t// with `Echo#AcquireContext()` and `Echo#ReleaseContext()`.\n\t// See `Echo#ServeHTTP()`\n\tReset(r *http.Request, w http.ResponseWriter)\n}\n```\nContext represents the context of the current HTTP request. It holds request and response objects, path, path parameters, data and registered handler.\n\n```go\ntype DefaultBinder struct{}\n```\nDefaultBinder is the default implementation of the Binder interface. For path, query, header, and form binding, time.Time and \\*time.Time fields (not slices) may use a format tag: \"date-time\" uses the standard RFC3339 decoding, \"date-time-local\" accepts \"2006-01-02T15:04:05\" with optional fractional seconds, \"date\" accepts \"2006-01-02\", and other values specify Go time layouts. \"date\", \"date-time-local\", and layouts without a timezone give UTC times. JSON and XML decoding do not use this tag. HTML datetime-local inputs omit seconds by default, so bind them with a Go layout such as \"2006-01-02T15:04\" instead of \"date-time-local\".\n\n```go\nfunc (b *DefaultBinder) Bind(i interface{}, c Context) (err error)\n```\nBind implements the \\`Binder#Bind\\` function. Binding is done in following order: 1) path params; 2) query params; 3) request body. Each step COULD override previous step binded values. For single source binding use their own methods BindBody, BindQueryParams, BindPathParams.\n\n```go\nfunc (b *DefaultBinder) BindBody(c Context, i interface{}) (err error)\n```\nBindBody binds request body contents to bindable object NB: then binding forms take note that this implementation uses standard library form parsing which parses form data from BOTH URL and BODY if content type is not MIMEMultipartForm See non-MIMEMultipartForm: [https://golang.org/pkg/net/http/#Request.ParseForm](https://golang.org/pkg/net/http/#Request.ParseForm) See MIMEMultipartForm: [https://golang.org/pkg/net/http/#Request.ParseMultipartForm](https://golang.org/pkg/net/http/#Request.ParseMultipartForm)\n\n```go\nfunc (b *DefaultBinder) BindHeaders(c Context, i interface{}) error\n```\nBindHeaders binds HTTP headers to a bindable object\n\n```go\nfunc (b *DefaultBinder) BindPathParams(c Context, i interface{}) error\n```\nBindPathParams binds path params to bindable object\n\nTime format support: time.Time fields can use \\`format\\` tags to specify custom parsing layouts. Example: \\`form:\"created\" format:\"2006-01-02T15:04\"\\` for HTML datetime-local input Example: \\`param:\"date\" format:\"2006-01-02\"\\` for date format Uses Go's standard time format reference time: Mon Jan 2 15:04:05 MST 2006 OpenAPI format names \"date-time\", \"date-time-local\" and \"date\" are also supported (see DefaultBinder) Works with form data, query parameters, headers, and path parameters (not JSON body) Falls back to default time.Time parsing if no format tag is specified\n\n```go\nfunc (b *DefaultBinder) BindQueryParams(c Context, i interface{}) error\n```\nBindQueryParams binds query params to bindable object\n\n```go\ntype DefaultJSONSerializer struct{}\n```\nDefaultJSONSerializer implements JSON encoding using encoding/json.\n\n```go\nfunc (d DefaultJSONSerializer) Deserialize(c Context, i interface{}) error\n```\nDeserialize reads a JSON from a request body and converts it into an interface.\n\n```go\nfunc (d DefaultJSONSerializer) Serialize(c Context, i interface{}, indent string) error\n```\nSerialize converts an interface into a json and writes it to the response. You can optionally use the indent parameter to produce pretty JSONs.\n\n```go\ntype Echo struct {\n\tStdLogger        *stdLog.Logger\n\tServer           *http.Server\n\tTLSServer        *http.Server\n\tListener         net.Listener\n\tTLSListener      net.Listener\n\tAutoTLSManager   autocert.Manager\n\tHTTPErrorHandler HTTPErrorHandler\n\tBinder           Binder\n\tJSONSerializer   JSONSerializer\n\tValidator        Validator\n\tRenderer         Renderer\n\tLogger           Logger\n\t// IPExtractor defines how Context.RealIP determines the client IP address.\n\t// If nil, only the connection peer is used. Applications behind a proxy must\n\t// configure a header extractor that trusts only their own proxies.\n\tIPExtractor IPExtractor\n\t// SchemeExtractor defines the strategy for determining the request scheme (`http` or `https`),\n\t// particularly important when behind proxies or load balancers that terminate TLS.\n\t// Used by Context.Scheme and by the HTTPS redirect, Secure and Proxy middlewares.\n\t// If not set, forwarding headers such as `X-Forwarded-Proto` are trusted only from loopback, link-local and\n\t// private network addresses and unix sockets. See ExtractSchemeFromHeaders.\n\tSchemeExtractor SchemeExtractor\n\tListenerNetwork string\n\n\t// OnAddRouteHandler is called when Echo adds new route to specific host router.\n\tOnAddRouteHandler func(host string, route Route, handler HandlerFunc, middleware []MiddlewareFunc)\n\tDisableHTTP2      bool\n\tDebug             bool\n\tHideBanner        bool\n\tHidePort          bool\n\n\t// EnablePathUnescapingStaticFiles enables path parameter (param: *) unescaping for Static/StaticFS methods.\n\t// Default false (safe): encoded slashes (%2f) in the wildcard param are NOT decoded,\n\t// preventing ACL bypass where /admin%2fprivate.txt bypasses a /admin/* route guard by\n\t// not matching that route but having its wildcard param decoded to admin/private.txt.\n\t// Set to true only when serving files whose names contain URL-encoded characters\n\t// (e.g. \"hello world.txt\" via /hello%20world.txt) and you are not relying on\n\t// route-based ACL guards to restrict access.\n\t// If you are enabling this option, make sure you understand the security implications.\n\t// See: https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq\n\tEnablePathUnescapingStaticFiles bool\n\t// contains filtered or unexported fields\n}\n```\nEcho is the top-level framework instance.\n\nGoroutine safety: Do not mutate Echo instance fields after server has started. Accessing these fields from handlers/middlewares and changing field values at the same time leads to data-races. Adding new routes after the server has been started is also not safe!\n\n```go\nfunc New() (e *Echo)\n```\nNew creates an instance of Echo.\n\n```go\nfunc (e *Echo) AcquireContext() Context\n```\nAcquireContext returns an empty \\`Context\\` instance from the pool. You must return the context by calling \\`ReleaseContext()\\`.\n\n```go\nfunc (e *Echo) Add(method, path string, handler HandlerFunc, middleware ...MiddlewareFunc) *Route\n```\nAdd registers a new route for an HTTP method and path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) []*Route\n```\nAny registers a new route for all HTTP methods (supported by Echo) and path with matching handler in the router with optional route-level middleware.\n\nNote: this method only adds specific set of supported HTTP methods as handler and is not true \"catch-any-arbitrary-method\" way of matching requests.\n\n```go\nfunc (e *Echo) CONNECT(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nCONNECT registers a new CONNECT route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) Close() error\n```\nClose immediately stops the server. It internally calls \\`http.Server#Close()\\`.\n\n```go\nfunc (e *Echo) DELETE(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nDELETE registers a new DELETE route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) DefaultHTTPErrorHandler(err error, c Context)\n```\nDefaultHTTPErrorHandler is the default HTTP error handler. It sends a JSON response with status code.\n\nNOTE: In case errors happens in middleware call-chain that is returning from handler (which did not return an error). When handler has already sent response (ala c.JSON()) and there is error in middleware that is returning from handler. Then the error that global error handler received will be ignored because we have already \"committed\" the response and status code header has been sent to the client.\n\n```go\nfunc (e *Echo) File(path, file string, m ...MiddlewareFunc) *Route\n```\nFile registers a new route with path to serve a static file with optional route-level middleware.\n\n```go\nfunc (e *Echo) FileFS(path, file string, filesystem fs.FS, m ...MiddlewareFunc) *Route\n```\nFileFS registers a new route with path to serve file from the provided file system.\n\n```go\nfunc (e *Echo) GET(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nGET registers a new GET route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) Group(prefix string, m ...MiddlewareFunc) (g *Group)\n```\nGroup creates a new router group with prefix and optional group-level middleware.\n\n```go\nfunc (e *Echo) HEAD(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nHEAD registers a new HEAD route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) Host(name string, m ...MiddlewareFunc) (g *Group)\n```\nHost creates a new router group for the provided host and optional host-level middleware.\n\n```go\nfunc (e *Echo) ListenerAddr() net.Addr\n```\nListenerAddr returns net.Addr for Listener\n\n```go\nfunc (e *Echo) Match(methods []string, path string, handler HandlerFunc, middleware ...MiddlewareFunc) []*Route\n```\nMatch registers a new route for multiple HTTP methods and path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) NewContext(r *http.Request, w http.ResponseWriter) Context\n```\nNewContext returns a Context instance.\n\n```go\nfunc (e *Echo) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nOPTIONS registers a new OPTIONS route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPATCH registers a new PATCH route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) POST(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPOST registers a new POST route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) PUT(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPUT registers a new PUT route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) Pre(middleware ...MiddlewareFunc)\n```\nPre adds middleware to the chain which is run before router.\n\n```go\nfunc (e *Echo) ReleaseContext(c Context)\n```\nReleaseContext returns the \\`Context\\` instance back to the pool. You must call it after \\`AcquireContext()\\`.\n\n```go\nfunc (e *Echo) Reverse(name string, params ...interface{}) string\n```\nReverse generates a URL from route name and provided parameters.\n\n```go\nfunc (e *Echo) RouteNotFound(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nRouteNotFound registers a special-case route which is executed when no other route is found (i.e. HTTP 404 cases) for current request URL. Path supports static and named/any parameters just like other http method is defined. Generally path is ended with wildcard/match-any character (\\`/\\*\\`, \\`/download/\\*\\` etc).\n\nExample: \\`e.RouteNotFound(\"/\\*\", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })\\`\n\n```go\nfunc (e *Echo) Router() *Router\n```\nRouter returns the default router.\n\n```go\nfunc (e *Echo) Routers() map[string]*Router\n```\nRouters returns the map of host =\u003e router.\n\n```go\nfunc (e *Echo) Routes() []*Route\n```\nRoutes returns the registered routes for default router. In case when Echo serves multiple hosts/domains use \\`e.Routers()\\[\"domain2.site\"].Routes()\\` to get specific host routes.\n\n```go\nfunc (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements \\`http.Handler\\` interface, which serves HTTP requests.\n\n```go\nfunc (e *Echo) Shutdown(ctx stdContext.Context) error\n```\nShutdown stops the server gracefully. It internally calls \\`http.Server#Shutdown()\\`.\n\n```go\nfunc (e *Echo) Start(address string) error\n```\nStart starts an HTTP server.\n\n```go\nfunc (e *Echo) StartAutoTLS(address string) error\n```\nStartAutoTLS starts an HTTPS server using certificates automatically installed from [https://letsencrypt.org](https://letsencrypt.org).\n\n```go\nfunc (e *Echo) StartH2CServer(address string, h2s *http2.Server) error\n```\nStartH2CServer starts a custom http/2 server with h2c (HTTP/2 Cleartext).\n\n```go\nfunc (e *Echo) StartServer(s *http.Server) (err error)\n```\nStartServer starts a custom http server.\n\n```go\nfunc (e *Echo) StartTLS(address string, certFile, keyFile interface{}) (err error)\n```\nStartTLS starts an HTTPS server. If \\`certFile\\` or \\`keyFile\\` is \\`string\\` the values are treated as file paths. If \\`certFile\\` or \\`keyFile\\` is \\`\\[]byte\\` the values are treated as the certificate or key as-is.\n\n```go\nfunc (e *Echo) Static(pathPrefix, fsRoot string) *Route\n```\nStatic registers a new route with path prefix to serve static files from the provided root directory.\n\nA pathPrefix without a trailing slash, such as \"/assets\", serves \"/assets\" (redirected to \"/assets/\") and the paths below \"/assets/\", but not sibling paths such as \"/assetsadmin/file\".\n\n```go\nfunc (e *Echo) StaticFS(pathPrefix string, filesystem fs.FS) *Route\n```\nStaticFS registers a new route with path prefix to serve static files from the provided file system.\n\nWhen dealing with \\`embed.FS\\` use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path. This is necessary as \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix.\n\n```go\nfunc (e *Echo) TLSListenerAddr() net.Addr\n```\nTLSListenerAddr returns net.Addr for TLSListener\n\n```go\nfunc (e *Echo) TRACE(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nTRACE registers a new TRACE route for a path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) URI(handler HandlerFunc, params ...interface{}) string\n```\nURI generates an URI from handler.\n\n```go\nfunc (e *Echo) URL(h HandlerFunc, params ...interface{}) string\n```\nURL is an alias for \\`URI\\` function.\n\n```go\nfunc (e *Echo) Use(middleware ...MiddlewareFunc)\n```\nUse adds middleware to the chain which is run after router.\n\n```go\ntype Group struct {\n\t// contains filtered or unexported fields\n}\n```\nGroup is a set of sub-routes for a specified route. It can be used for inner routes that share a common middleware or functionality that should be separate from the parent echo instance while still inheriting from it.\n\n```go\nfunc (g *Group) Add(method, path string, handler HandlerFunc, middleware ...MiddlewareFunc) *Route\n```\nAdd implements \\`Echo#Add()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) []*Route\n```\nAny implements \\`Echo#Any()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) CONNECT(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nCONNECT implements \\`Echo#CONNECT()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) DELETE(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nDELETE implements \\`Echo#DELETE()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) File(path, file string)\n```\nFile implements \\`Echo#File()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) FileFS(path, file string, filesystem fs.FS, m ...MiddlewareFunc) *Route\n```\nFileFS implements \\`Echo#FileFS()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) GET(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nGET implements \\`Echo#GET()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) Group(prefix string, middleware ...MiddlewareFunc) (sg *Group)\n```\nGroup creates a new sub-group with prefix and optional sub-group-level middleware.\n\n```go\nfunc (g *Group) HEAD(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nHEAD implements \\`Echo#HEAD()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) Match(methods []string, path string, handler HandlerFunc, middleware ...MiddlewareFunc) []*Route\n```\nMatch implements \\`Echo#Match()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nOPTIONS implements \\`Echo#OPTIONS()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPATCH implements \\`Echo#PATCH()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) POST(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPOST implements \\`Echo#POST()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) PUT(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nPUT implements \\`Echo#PUT()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) RouteNotFound(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nRouteNotFound implements \\`Echo#RouteNotFound()\\` for sub-routes within the Group.\n\nExample: \\`g.RouteNotFound(\"/\\*\", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })\\`\n\n```go\nfunc (g *Group) Static(pathPrefix, fsRoot string)\n```\nStatic implements \\`Echo#Static()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) StaticFS(pathPrefix string, filesystem fs.FS)\n```\nStaticFS implements \\`Echo#StaticFS()\\` for sub-routes within the Group.\n\nWhen dealing with \\`embed.FS\\` use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path. This is necessary as \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix.\n\n```go\nfunc (g *Group) TRACE(path string, h HandlerFunc, m ...MiddlewareFunc) *Route\n```\nTRACE implements \\`Echo#TRACE()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) Use(middleware ...MiddlewareFunc)\n```\nUse implements \\`Echo#Use()\\` for sub-routes within the Group.\n\nGroup middleware runs before the middleware of the route that matched, including routes of nested groups. A group middleware that answers requests itself, such as middleware.Static, is therefore not protected by guards on those routes. Use Group#Static to serve files behind such guards.\n\n```go\ntype HTTPError struct {\n\tInternal error       `json:\"-\"` // Stores the error returned by an external dependency\n\tMessage  interface{} `json:\"message\"`\n\tCode     int         `json:\"-\"`\n}\n```\nHTTPError represents an error that occurred while handling a request.\n\n```go\nfunc NewHTTPError(code int, message ...interface{}) *HTTPError\n```\nNewHTTPError creates a new HTTPError instance.\n\n```go\nfunc (he *HTTPError) Error() string\n```\nError makes it compatible with \\`error\\` interface.\n\n```go\nfunc (he *HTTPError) SetInternal(err error) *HTTPError\n```\nSetInternal sets error to HTTPError.Internal\n\n```go\nfunc (he *HTTPError) Unwrap() error\n```\nUnwrap satisfies the Go 1.13 error wrapper interface.\n\n```go\nfunc (he *HTTPError) WithInternal(err error) *HTTPError\n```\nWithInternal returns clone of HTTPError with err set to HTTPError.Internal field\n\n```go\ntype HTTPErrorHandler func(err error, c Context)\n```\nHTTPErrorHandler is a centralized HTTP error handler.\n\n```go\ntype HandlerFunc func(c Context) error\n```\nHandlerFunc defines a function to serve HTTP requests.\n\n```go\nfunc StaticDirectoryHandler(fileSystem fs.FS, disablePathUnescaping bool) HandlerFunc\n```\nStaticDirectoryHandler creates handler function to serve files from provided file system. When disablePathUnescaping is set then file name from path is not unescaped and is served as is.\n\nNote: when disablePathUnescaping=false, the handler decodes the wildcard param before serving. If route guards (e.g. e.GET(\"/admin/\\*\", forbidden)) are used to restrict parts of the filesystem, an encoded separator (%2F) or encoded dot-dot (%2E%2E) in the URL can resolve to a path that the router never matched against the guard route. Do not rely on route guards alone to restrict a filesystem served by this handler. See [https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq](https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq)\n\n```go\nfunc StaticFileHandler(file string, filesystem fs.FS) HandlerFunc\n```\nStaticFileHandler creates handler function to serve file from provided file system\n\n```go\nfunc WrapHandler(h http.Handler) HandlerFunc\n```\nWrapHandler wraps \\`http.Handler\\` into \\`echo.HandlerFunc\\`.\n\n```go\ntype IPExtractor func(*http.Request) string\n```\nIPExtractor is a function to extract IP addr from http.Request. Set appropriate one to Echo#IPExtractor. See [https://echo.labstack.com/guide/ip-address](https://echo.labstack.com/guide/ip-address) for more details.\n\n```go\nfunc ExtractIPDirect() IPExtractor\n```\nExtractIPDirect extracts IP address using actual IP address. Use this if your server faces to internet directory (i.e.: uses no proxy).\n\n```go\nfunc ExtractIPFromRealIPHeader(options ...TrustOption) IPExtractor\n```\nExtractIPFromRealIPHeader extracts IP address using x-real-ip header. Use this if you put proxy which uses this header.\n\n```go\nfunc ExtractIPFromXFFHeader(options ...TrustOption) IPExtractor\n```\nExtractIPFromXFFHeader extracts IP address using x-forwarded-for header. Use this if you put proxy which uses this header. This returns nearest untrustable IP. If all IPs are trustable, returns furthest one (i.e.: XFF\\[0]).\n\n```go\ntype JSONSerializer interface {\n\tSerialize(c Context, i interface{}, indent string) error\n\tDeserialize(c Context, i interface{}) error\n}\n```\nJSONSerializer is the interface that encodes and decodes JSON to and from interfaces.\n\n```go\ntype Logger interface {\n\tOutput() io.Writer\n\tSetOutput(w io.Writer)\n\tPrefix() string\n\tSetPrefix(p string)\n\tLevel() log.Lvl\n\tSetLevel(v log.Lvl)\n\tSetHeader(h string)\n\tPrint(i ...interface{})\n\tPrintf(format string, args ...interface{})\n\tPrintj(j log.JSON)\n\tDebug(i ...interface{})\n\tDebugf(format string, args ...interface{})\n\tDebugj(j log.JSON)\n\tInfo(i ...interface{})\n\tInfof(format string, args ...interface{})\n\tInfoj(j log.JSON)\n\tWarn(i ...interface{})\n\tWarnf(format string, args ...interface{})\n\tWarnj(j log.JSON)\n\tError(i ...interface{})\n\tErrorf(format string, args ...interface{})\n\tErrorj(j log.JSON)\n\tFatal(i ...interface{})\n\tFatalj(j log.JSON)\n\tFatalf(format string, args ...interface{})\n\tPanic(i ...interface{})\n\tPanicj(j log.JSON)\n\tPanicf(format string, args ...interface{})\n}\n```\nLogger defines the logging interface.\n\n```go\ntype Map map[string]interface{}\n```\nMap defines a generic map of type \\`map\\[string]interface{}\\`.\n\n```go\ntype MiddlewareFunc func(next HandlerFunc) HandlerFunc\n```\nMiddlewareFunc defines a function to process middleware.\n\n```go\nfunc WrapMiddleware(m func(http.Handler) http.Handler) MiddlewareFunc\n```\nWrapMiddleware wraps \\`func(http.Handler) http.Handler\\` into \\`echo.MiddlewareFunc\\`\n\n```go\ntype Renderer interface {\n\tRender(io.Writer, string, interface{}, Context) error\n}\n```\nRenderer is the interface that wraps the Render function.\n\n```go\ntype Response struct {\n\tWriter http.ResponseWriter\n\n\tStatus    int\n\tSize      int64\n\tCommitted bool\n\t// contains filtered or unexported fields\n}\n```\nResponse wraps an http.ResponseWriter and implements its interface to be used by an HTTP handler to construct an HTTP response. See: [https://golang.org/pkg/net/http/#ResponseWriter](https://golang.org/pkg/net/http/#ResponseWriter)\n\n```go\nfunc NewResponse(w http.ResponseWriter, e *Echo) (r *Response)\n```\nNewResponse creates a new instance of Response.\n\n```go\nfunc (r *Response) After(fn func())\n```\nAfter registers a function which is called just after the response is written. If the \\`Content-Length\\` is unknown, none of the after function is executed.\n\n```go\nfunc (r *Response) Before(fn func())\n```\nBefore registers a function which is called just before the response is written.\n\n```go\nfunc (r *Response) Flush()\n```\nFlush implements the http.Flusher interface to allow an HTTP handler to flush buffered data to the client. See [http.Flusher](/net/http#Flusher)([https://golang.org/pkg/net/http/#Flusher](https://golang.org/pkg/net/http/#Flusher))\n\n```go\nfunc (r *Response) Header() http.Header\n```\nHeader returns the header map for the writer that will be sent by WriteHeader. Changing the header after a call to WriteHeader (or Write) has no effect unless the modified headers were declared as trailers by setting the \"Trailer\" header before the call to WriteHeader (see example) To suppress implicit response headers, set their value to nil. Example: [https://golang.org/pkg/net/http/#example\\_ResponseWriter\\_trailers](https://golang.org/pkg/net/http/#example_ResponseWriter_trailers)\n\n```go\nfunc (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error)\n```\nHijack implements the http.Hijacker interface to allow an HTTP handler to take over the connection. See [http.Hijacker](/net/http#Hijacker)([https://golang.org/pkg/net/http/#Hijacker](https://golang.org/pkg/net/http/#Hijacker))\n\n```go\nfunc (r *Response) Unwrap() http.ResponseWriter\n```\nUnwrap returns the original http.ResponseWriter. ResponseController can be used to access the original http.ResponseWriter. See \\[[https://go.dev/blog/go1.20](https://go.dev/blog/go1.20)]\n\n```go\nfunc (r *Response) Write(b []byte) (n int, err error)\n```\nWrite writes the data to the connection as part of an HTTP reply.\n\n```go\nfunc (r *Response) WriteHeader(code int)\n```\nWriteHeader sends an HTTP response header with status code. If WriteHeader is not called explicitly, the first call to Write will trigger an implicit WriteHeader(http.StatusOK). Thus explicit calls to WriteHeader are mainly used to send error codes.\n\n```go\ntype Route struct {\n\tMethod string `json:\"method\"`\n\tPath   string `json:\"path\"`\n\tName   string `json:\"name\"`\n}\n```\nRoute contains a handler and information for matching against requests.\n\n```go\ntype Router struct {\n\t// contains filtered or unexported fields\n}\n```\nRouter is the registry of all registered routes for an \\`Echo\\` instance for request matching and URL path parameter parsing.\n\n```go\nfunc NewRouter(e *Echo) *Router\n```\nNewRouter returns a new Router instance.\n\n```go\nfunc (r *Router) Add(method, path string, h HandlerFunc)\n```\nAdd registers a new route for method and path with matching handler.\n\n```go\nfunc (r *Router) Find(method, path string, c Context)\n```\nFind lookup a handler registered for method and path. It also parses URL for path parameters and load them into context.\n\nFor performance:\n\n\\- Get context from \\`Echo#AcquireContext()\\` - Reset it \\`Context#Reset()\\` - Return it \\`Echo#ReleaseContext()\\`.\n\n```go\nfunc (r *Router) Reverse(name string, params ...interface{}) string\n```\nReverse generates a URL from route name and provided parameters.\n\n```go\nfunc (r *Router) Routes() []*Route\n```\nRoutes returns the registered routes.\n\n```go\ntype SchemeExtractor func(*http.Request) string\n```\nSchemeExtractor is a function to determine the scheme (for example \\`http\\` or \\`https\\`) of http.Request. Set appropriate one to Echo#SchemeExtractor.\n\nWhen Echo#SchemeExtractor is not set, Context.Scheme uses ExtractSchemeFromHeaders with the default trust options.\n\n```go\nfunc ExtractSchemeDirect() SchemeExtractor\n```\nExtractSchemeDirect returns a SchemeExtractor that uses only the actual connection: \\`https\\` for TLS connections and \\`http\\` otherwise. Forwarding headers are ignored. Use this if your server faces the internet directly (i.e.: uses no proxy).\n\n```go\nfunc ExtractSchemeFromHeaders(options ...TrustOption) SchemeExtractor\n```\nExtractSchemeFromHeaders returns a SchemeExtractor that uses the \\`X-Forwarded-Proto\\`, \\`X-Forwarded-Protocol\\`, \\`X-Forwarded-Ssl\\` and \\`X-Url-Scheme\\` headers only when the request comes directly from a trusted address (http.Request.RemoteAddr). For requests from other addresses the headers are ignored and the scheme of the actual connection is used.\n\nBy default, loopback, link-local and private network addresses and unix socket peers are trusted. Use TrustOption to change this, for example TrustIPRange to trust a proxy that connects from a public address (such as a CDN or a cloud load balancer). TrustLoopback(false) also stops trusting unix socket peers.\n\nWhen \\`X-Forwarded-Proto\\` is present, the other headers are ignored, and the last value is used. The trusted proxy must therefore set (overwrite) \\`X-Forwarded-Proto\\` rather than pass through the value sent by the client.\n\nThis is the default strategy when Echo#SchemeExtractor is not set.\n\n```go\nfunc LegacySchemeExtractor() SchemeExtractor\n```\nLegacySchemeExtractor returns a SchemeExtractor that uses the forwarding headers from any client. This was the behavior of Context.Scheme before the address of the client was checked.\n\nIt is not safe against spoofing unless every request passes through a proxy that sets or removes the \\`X-Forwarded-Proto\\`, \\`X-Forwarded-Protocol\\`, \\`X-Forwarded-Ssl\\` and \\`X-Url-Scheme\\` headers. Use ExtractSchemeFromHeaders instead.\n\n```go\ntype TemplateRenderer struct {\n\tTemplate interface {\n\t\tExecuteTemplate(wr io.Writer, name string, data any) error\n\t}\n}\n```\nTemplateRenderer is helper to ease creating renderers for \\`html/template\\` and \\`text/template\\` packages. Example usage:\n\n\t\te.Renderer = \u0026echo.TemplateRenderer{\n\t\t\tTemplate: template.Must(template.ParseGlob(\"templates/*.html\")),\n\t\t}\n\n\t  e.Renderer = \u0026echo.TemplateRenderer{\n\t\t\tTemplate: template.Must(template.New(\"hello\").Parse(\"Hello, {{.}}!\")),\n\t\t}\n\n```go\nfunc (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c Context) error\n```\nRender renders the template with given data.\n\n```go\ntype TimeLayout string\n```\nTimeLayout specifies the format for parsing time values in request parameters. It can be a standard Go time layout string or one of the special Unix time layouts.\n\n```go\ntype TimeOpts struct {\n\t// Layout specifies the format for parsing time values in request parameters.\n\t// It can be a standard Go time layout string or one of the special Unix time layouts.\n\t//\n\t// Parsing layout defaults to: echo.TimeLayout(time.RFC3339Nano)\n\t// - To convert to custom layout use `echo.TimeLayout(\"2006-01-02\")`\n\t// - To convert unix timestamp (integer) to time.Time use `echo.TimeLayoutUnixTime`\n\t// - To convert unix timestamp in milliseconds to time.Time use `echo.TimeLayoutUnixTimeMilli`\n\t// - To convert unix timestamp in nanoseconds to time.Time use `echo.TimeLayoutUnixTimeNano`\n\tLayout TimeLayout\n\n\t// ParseInLocation is location used with time.ParseInLocation for layout that do not contain\n\t// timezone information to set output time in given location.\n\t// Defaults to time.UTC\n\tParseInLocation *time.Location\n\n\t// ToInLocation is location to which parsed time is converted to after parsing.\n\t// The parsed time will be converted using time.In(ToInLocation).\n\t// Defaults to time.UTC\n\tToInLocation *time.Location\n}\n```\nTimeOpts is options for parsing time.Time values\n\n```go\ntype TrustOption func(*ipChecker)\n```\nTrustOption is config for which IP address to trust\n\n```go\nfunc TrustIPRange(ipRange *net.IPNet) TrustOption\n```\nTrustIPRange add trustable IP ranges using CIDR notation.\n\n```go\nfunc TrustLinkLocal(v bool) TrustOption\n```\nTrustLinkLocal configures if you trust link-local address (default: true).\n\n```go\nfunc TrustLoopback(v bool) TrustOption\n```\nTrustLoopback configures if you trust loopback address (default: true).\n\n```go\nfunc TrustPrivateNet(v bool) TrustOption\n```\nTrustPrivateNet configures if you trust private network address (default: true).\n\n```go\ntype Validator interface {\n\tValidate(i interface{}) error\n}\n```\nValidator is the interface that wraps the Validate function.\n\n```go\ntype ValueBinder struct {\n\t// ValueFunc is used to get single parameter (first) value from request\n\tValueFunc func(sourceParam string) string\n\t// ValuesFunc is used to get all values for parameter from request. i.e. `/api/search?ids=1\u0026ids=2`\n\tValuesFunc func(sourceParam string) []string\n\t// ErrorFunc is used to create errors. Allows you to use your own error type, that for example marshals to your specific json response\n\tErrorFunc func(sourceParam string, values []string, message interface{}, internalError error) error\n\t// contains filtered or unexported fields\n}\n```\nValueBinder provides utility methods for binding query or path parameter to various Go built-in types\n\n```go\nfunc FormFieldBinder(c Context) *ValueBinder\n```\nFormFieldBinder creates form field value binder For all requests, FormFieldBinder parses the raw query from the URL and uses query params as form fields\n\nFor POST, PUT, and PATCH requests, it also reads the request body, parses it as a form and uses query params as form fields. Request body parameters take precedence over URL query string values in r.Form.\n\nNB: when binding forms take note that this implementation uses standard library form parsing which parses form data from BOTH URL and BODY if content type is not MIMEMultipartForm See [https://golang.org/pkg/net/http/#Request.ParseForm](https://golang.org/pkg/net/http/#Request.ParseForm)\n\n```go\nfunc PathParamsBinder(c Context) *ValueBinder\n```\nPathParamsBinder creates path parameter value binder\n\n```go\nfunc QueryParamsBinder(c Context) *ValueBinder\n```\nQueryParamsBinder creates query parameter value binder\n\n```go\nfunc (b *ValueBinder) BindError() error\n```\nBindError returns first seen bind error and resets/empties binder errors for further calls\n\n```go\nfunc (b *ValueBinder) BindErrors() []error\n```\nBindErrors returns all bind errors and resets/empties binder errors for further calls\n\n```go\nfunc (b *ValueBinder) BindUnmarshaler(sourceParam string, dest BindUnmarshaler) *ValueBinder\n```\nBindUnmarshaler binds parameter to destination implementing BindUnmarshaler interface\n\n```go\nfunc (b *ValueBinder) BindWithDelimiter(sourceParam string, dest interface{}, delimiter string) *ValueBinder\n```\nBindWithDelimiter binds parameter to destination by suitable conversion function. Delimiter is used before conversion to split parameter value to separate values\n\n```go\nfunc (b *ValueBinder) Bool(sourceParam string, dest *bool) *ValueBinder\n```\nBool binds parameter to bool variable\n\n```go\nfunc (b *ValueBinder) Bools(sourceParam string, dest *[]bool) *ValueBinder\n```\nBools binds parameter values to slice of bool variables\n\n```go\nfunc (b *ValueBinder) Byte(sourceParam string, dest *byte) *ValueBinder\n```\nByte binds parameter to byte variable\n\n```go\nfunc (b *ValueBinder) CustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder\n```\nCustomFunc binds parameter values with Func. Func is called only when parameter values exist.\n\n```go\nfunc (b *ValueBinder) Duration(sourceParam string, dest *time.Duration) *ValueBinder\n```\nDuration binds parameter to time.Duration variable\n\n```go\nfunc (b *ValueBinder) Durations(sourceParam string, dest *[]time.Duration) *ValueBinder\n```\nDurations binds parameter values to slice of time.Duration variables\n\n```go\nfunc (b *ValueBinder) FailFast(value bool) *ValueBinder\n```\nFailFast set internal flag to indicate if binding methods will return early (without binding) when previous bind failed NB: call this method before any other binding methods as it modifies binding methods behaviour\n\n```go\nfunc (b *ValueBinder) Float32(sourceParam string, dest *float32) *ValueBinder\n```\nFloat32 binds parameter to float32 variable\n\n```go\nfunc (b *ValueBinder) Float32s(sourceParam string, dest *[]float32) *ValueBinder\n```\nFloat32s binds parameter values to slice of float32 variables\n\n```go\nfunc (b *ValueBinder) Float64(sourceParam string, dest *float64) *ValueBinder\n```\nFloat64 binds parameter to float64 variable\n\n```go\nfunc (b *ValueBinder) Float64s(sourceParam string, dest *[]float64) *ValueBinder\n```\nFloat64s binds parameter values to slice of float64 variables\n\n```go\nfunc (b *ValueBinder) Int(sourceParam string, dest *int) *ValueBinder\n```\nInt binds parameter to int variable\n\n```go\nfunc (b *ValueBinder) Int16(sourceParam string, dest *int16) *ValueBinder\n```\nInt16 binds parameter to int16 variable\n\n```go\nfunc (b *ValueBinder) Int16s(sourceParam string, dest *[]int16) *ValueBinder\n```\nInt16s binds parameter to slice of int16\n\n```go\nfunc (b *ValueBinder) Int32(sourceParam string, dest *int32) *ValueBinder\n```\nInt32 binds parameter to int32 variable\n\n```go\nfunc (b *ValueBinder) Int32s(sourceParam string, dest *[]int32) *ValueBinder\n```\nInt32s binds parameter to slice of int32\n\n```go\nfunc (b *ValueBinder) Int64(sourceParam string, dest *int64) *ValueBinder\n```\nInt64 binds parameter to int64 variable\n\n```go\nfunc (b *ValueBinder) Int64s(sourceParam string, dest *[]int64) *ValueBinder\n```\nInt64s binds parameter to slice of int64\n\n```go\nfunc (b *ValueBinder) Int8(sourceParam string, dest *int8) *ValueBinder\n```\nInt8 binds parameter to int8 variable\n\n```go\nfunc (b *ValueBinder) Int8s(sourceParam string, dest *[]int8) *ValueBinder\n```\nInt8s binds parameter to slice of int8\n\n```go\nfunc (b *ValueBinder) Ints(sourceParam string, dest *[]int) *ValueBinder\n```\nInts binds parameter to slice of int\n\n```go\nfunc (b *ValueBinder) JSONUnmarshaler(sourceParam string, dest json.Unmarshaler) *ValueBinder\n```\nJSONUnmarshaler binds parameter to destination implementing json.Unmarshaler interface\n\n```go\nfunc (b *ValueBinder) MustBindUnmarshaler(sourceParam string, dest BindUnmarshaler) *ValueBinder\n```\nMustBindUnmarshaler requires parameter value to exist to bind to destination implementing BindUnmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustBindWithDelimiter(sourceParam string, dest interface{}, delimiter string) *ValueBinder\n```\nMustBindWithDelimiter requires parameter value to exist to bind destination by suitable conversion function. Delimiter is used before conversion to split parameter value to separate values\n\n```go\nfunc (b *ValueBinder) MustBool(sourceParam string, dest *bool) *ValueBinder\n```\nMustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustBools(sourceParam string, dest *[]bool) *ValueBinder\n```\nMustBools requires parameter values to exist to bind to slice of bool variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustByte(sourceParam string, dest *byte) *ValueBinder\n```\nMustByte requires parameter value to exist to bind to byte variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustCustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder\n```\nMustCustomFunc requires parameter values to exist to bind with Func. Returns error when value does not exist.\n\n```go\nfunc (b *ValueBinder) MustDuration(sourceParam string, dest *time.Duration) *ValueBinder\n```\nMustDuration requires parameter value to exist to bind to time.Duration variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustDurations(sourceParam string, dest *[]time.Duration) *ValueBinder\n```\nMustDurations requires parameter values to exist to bind to slice of time.Duration variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat32(sourceParam string, dest *float32) *ValueBinder\n```\nMustFloat32 requires parameter value to exist to bind to float32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat32s(sourceParam string, dest *[]float32) *ValueBinder\n```\nMustFloat32s requires parameter values to exist to bind to slice of float32 variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat64(sourceParam string, dest *float64) *ValueBinder\n```\nMustFloat64 requires parameter value to exist to bind to float64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat64s(sourceParam string, dest *[]float64) *ValueBinder\n```\nMustFloat64s requires parameter values to exist to bind to slice of float64 variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustInt(sourceParam string, dest *int) *ValueBinder\n```\nMustInt requires parameter value to exist to bind to int variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt16(sourceParam string, dest *int16) *ValueBinder\n```\nMustInt16 requires parameter value to exist to bind to int16 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt16s(sourceParam string, dest *[]int16) *ValueBinder\n```\nMustInt16s requires parameter value to exist to bind to int16 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt32(sourceParam string, dest *int32) *ValueBinder\n```\nMustInt32 requires parameter value to exist to bind to int32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt32s(sourceParam string, dest *[]int32) *ValueBinder\n```\nMustInt32s requires parameter value to exist to bind to int32 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt64(sourceParam string, dest *int64) *ValueBinder\n```\nMustInt64 requires parameter value to exist to bind to int64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt64s(sourceParam string, dest *[]int64) *ValueBinder\n```\nMustInt64s requires parameter value to exist to bind to int64 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt8(sourceParam string, dest *int8) *ValueBinder\n```\nMustInt8 requires parameter value to exist to bind to int8 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt8s(sourceParam string, dest *[]int8) *ValueBinder\n```\nMustInt8s requires parameter value to exist to bind to int8 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInts(sourceParam string, dest *[]int) *ValueBinder\n```\nMustInts requires parameter value to exist to bind to int slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustJSONUnmarshaler(sourceParam string, dest json.Unmarshaler) *ValueBinder\n```\nMustJSONUnmarshaler requires parameter value to exist to bind to destination implementing json.Unmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustString(sourceParam string, dest *string) *ValueBinder\n```\nMustString requires parameter value to exist to bind to string variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustStrings(sourceParam string, dest *[]string) *ValueBinder\n```\nMustStrings requires parameter values to exist to bind to slice of string variables. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTextUnmarshaler(sourceParam string, dest encoding.TextUnmarshaler) *ValueBinder\n```\nMustTextUnmarshaler requires parameter value to exist to bind to destination implementing encoding.TextUnmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTime(sourceParam string, dest *time.Time, layout string) *ValueBinder\n```\nMustTime requires parameter value to exist to bind to time.Time variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTimes(sourceParam string, dest *[]time.Time, layout string) *ValueBinder\n```\nMustTimes requires parameter values to exist to bind to slice of time.Time variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustUint(sourceParam string, dest *uint) *ValueBinder\n```\nMustUint requires parameter value to exist to bind to uint variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint16(sourceParam string, dest *uint16) *ValueBinder\n```\nMustUint16 requires parameter value to exist to bind to uint16 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint16s(sourceParam string, dest *[]uint16) *ValueBinder\n```\nMustUint16s requires parameter value to exist to bind to uint16 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint32(sourceParam string, dest *uint32) *ValueBinder\n```\nMustUint32 requires parameter value to exist to bind to uint32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint32s(sourceParam string, dest *[]uint32) *ValueBinder\n```\nMustUint32s requires parameter value to exist to bind to uint32 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint64(sourceParam string, dest *uint64) *ValueBinder\n```\nMustUint64 requires parameter value to exist to bind to uint64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint64s(sourceParam string, dest *[]uint64) *ValueBinder\n```\nMustUint64s requires parameter value to exist to bind to uint64 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint8(sourceParam string, dest *uint8) *ValueBinder\n```\nMustUint8 requires parameter value to exist to bind to uint8 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint8s(sourceParam string, dest *[]uint8) *ValueBinder\n```\nMustUint8s requires parameter value to exist to bind to uint8 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUints(sourceParam string, dest *[]uint) *ValueBinder\n```\nMustUints requires parameter value to exist to bind to uint slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUnixTime(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTime requires parameter value to exist to bind to time.Duration variable (in local time corresponding to the given Unix time). Returns error when value does not exist.\n\nExample: 1609180603 bind to 2020-12-28T18:36:43.000000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) MustUnixTimeMilli(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTimeMilli requires parameter value to exist to bind to time.Duration variable  (in local time corresponding to the given Unix time in millisecond precision). Returns error when value does not exist.\n\nExample: 1647184410140 bind to 2022-03-13T15:13:30.140000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) MustUnixTimeNano(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTimeNano requires parameter value to exist to bind to time.Duration variable  (in local Time corresponding to the given Unix time value in nano second precision). Returns error when value does not exist.\n\nExample: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00 Example:          1000000000 binds to 1970-01-01T00:00:01.000000000+00:00 Example:           999999999 binds to 1970-01-01T00:00:00.999999999+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n  - Javascript's Number type only has about 53 bits of precision (Number.MAX\\_SAFE\\_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.\n\n```go\nfunc (b *ValueBinder) String(sourceParam string, dest *string) *ValueBinder\n```\nString binds parameter to string variable\n\n```go\nfunc (b *ValueBinder) Strings(sourceParam string, dest *[]string) *ValueBinder\n```\nStrings binds parameter values to slice of string\n\n```go\nfunc (b *ValueBinder) TextUnmarshaler(sourceParam string, dest encoding.TextUnmarshaler) *ValueBinder\n```\nTextUnmarshaler binds parameter to destination implementing encoding.TextUnmarshaler interface\n\n```go\nfunc (b *ValueBinder) Time(sourceParam string, dest *time.Time, layout string) *ValueBinder\n```\nTime binds parameter to time.Time variable\n\n```go\nfunc (b *ValueBinder) Times(sourceParam string, dest *[]time.Time, layout string) *ValueBinder\n```\nTimes binds parameter values to slice of time.Time variables\n\n```go\nfunc (b *ValueBinder) Uint(sourceParam string, dest *uint) *ValueBinder\n```\nUint binds parameter to uint variable\n\n```go\nfunc (b *ValueBinder) Uint16(sourceParam string, dest *uint16) *ValueBinder\n```\nUint16 binds parameter to uint16 variable\n\n```go\nfunc (b *ValueBinder) Uint16s(sourceParam string, dest *[]uint16) *ValueBinder\n```\nUint16s binds parameter to slice of uint16\n\n```go\nfunc (b *ValueBinder) Uint32(sourceParam string, dest *uint32) *ValueBinder\n```\nUint32 binds parameter to uint32 variable\n\n```go\nfunc (b *ValueBinder) Uint32s(sourceParam string, dest *[]uint32) *ValueBinder\n```\nUint32s binds parameter to slice of uint32\n\n```go\nfunc (b *ValueBinder) Uint64(sourceParam string, dest *uint64) *ValueBinder\n```\nUint64 binds parameter to uint64 variable\n\n```go\nfunc (b *ValueBinder) Uint64s(sourceParam string, dest *[]uint64) *ValueBinder\n```\nUint64s binds parameter to slice of uint64\n\n```go\nfunc (b *ValueBinder) Uint8(sourceParam string, dest *uint8) *ValueBinder\n```\nUint8 binds parameter to uint8 variable\n\n```go\nfunc (b *ValueBinder) Uint8s(sourceParam string, dest *[]uint8) *ValueBinder\n```\nUint8s binds parameter to slice of uint8\n\n```go\nfunc (b *ValueBinder) Uints(sourceParam string, dest *[]uint) *ValueBinder\n```\nUints binds parameter to slice of uint\n\n```go\nfunc (b *ValueBinder) UnixTime(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTime binds parameter to time.Time variable (in local Time corresponding to the given Unix time).\n\nExample: 1609180603 bind to 2020-12-28T18:36:43.000000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) UnixTimeMilli(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTimeMilli binds parameter to time.Time variable (in local time corresponding to the given Unix time in millisecond precision).\n\nExample: 1647184410140 bind to 2022-03-13T15:13:30.140000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) UnixTimeNano(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTimeNano binds parameter to time.Time variable (in local time corresponding to the given Unix time in nanosecond precision).\n\nExample: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00 Example:          1000000000 binds to 1970-01-01T00:00:01.000000000+00:00 Example:           999999999 binds to 1970-01-01T00:00:00.999999999+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n  - Javascript's Number type only has about 53 bits of precision (Number.MAX\\_SAFE\\_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.\n\n","path":"github.com/labstack/echo/v4","name":"echo","synopsis":"Package echo implements high performance, minimalist Go web framework.","isRedistributable":true}
