mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
update dependencies
This commit is contained in:
@@ -77,7 +77,7 @@ func (t DayTime) String() string {
|
||||
}
|
||||
|
||||
// Scan completes the sql driver.Scanner interface.
|
||||
func (t *DayTime) Scan(src interface{}) error {
|
||||
func (t *DayTime) Scan(src any) error {
|
||||
switch v := src.(type) {
|
||||
case time.Time: // type was set to timestamp
|
||||
if v.IsZero() {
|
||||
|
||||
@@ -16,7 +16,7 @@ func (d Duration) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
func (d *Duration) UnmarshalJSON(b []byte) error {
|
||||
var v interface{}
|
||||
var v any
|
||||
if err := json.Unmarshal(b, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ func (t ISO8601) Value() (driver.Value, error) {
|
||||
}
|
||||
|
||||
// Scan completes the sql driver.Scanner interface.
|
||||
func (t *ISO8601) Scan(src interface{}) error {
|
||||
func (t *ISO8601) Scan(src any) error {
|
||||
switch v := src.(type) {
|
||||
case time.Time: // type was set to timestamp
|
||||
if v.IsZero() {
|
||||
|
||||
@@ -108,7 +108,7 @@ func (t KitchenTime) String() string {
|
||||
|
||||
// Scan completes the pg and native sql driver.Scanner interface
|
||||
// reading functionality of a custom type.
|
||||
func (t *KitchenTime) Scan(src interface{}) error {
|
||||
func (t *KitchenTime) Scan(src any) error {
|
||||
switch v := src.(type) {
|
||||
case time.Time: // type was set to timestamp.
|
||||
if v.IsZero() {
|
||||
|
||||
@@ -155,7 +155,7 @@ func (t SimpleDate) String() string {
|
||||
|
||||
// Scan completes the pg and native sql driver.Scanner interface
|
||||
// reading functionality of a custom type.
|
||||
func (t *SimpleDate) Scan(src interface{}) error {
|
||||
func (t *SimpleDate) Scan(src any) error {
|
||||
switch v := src.(type) {
|
||||
case time.Time: // type was set to timestamp
|
||||
if v.IsZero() {
|
||||
@@ -209,7 +209,7 @@ func (t SimpleDates) DateStrings() []string {
|
||||
}
|
||||
|
||||
// Scan completes the pg and native sql driver.Scanner interface.
|
||||
func (t *SimpleDates) Scan(src interface{}) error {
|
||||
func (t *SimpleDates) Scan(src any) error {
|
||||
if src == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ func (d *TimeNotationDuration) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
var v interface{}
|
||||
var v any
|
||||
if err := json.Unmarshal(b, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user