1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-18 17:35:57 +00:00

add x/jsonx.DayTime type

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-02-27 22:38:09 +02:00
parent b4b1f73df6
commit 5844eaef24
5 changed files with 156 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ func (c *Client) emitEndRequest(ctx context.Context, resp *http.Response, err er
// RequestOption declares the type of option one can pass
// to the Do methods(JSON, Form, ReadJSON...).
// Request options run before request constructed.
type RequestOption func(*http.Request) error
type RequestOption = func(*http.Request) error
// We always add the following request headers, unless they're removed by custom ones.
var defaultRequestOptions = []RequestOption{

View File

@@ -13,7 +13,7 @@ import (
// All the builtin client options should live here, for easy discovery.
type Option func(*Client)
type Option = func(*Client)
// BaseURL registers the base URL of this client.
// All of its methods will prepend this url.