1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

update dependencies

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-15 23:29:20 +03:00
parent de4f462198
commit a8a3afea22
186 changed files with 694 additions and 689 deletions

View File

@@ -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() {

View File

@@ -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
}

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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
}

View File

@@ -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
}