mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
release v12.2.8
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
// DefaultTag is the default struct field tag.
|
||||
var DefaultTag = "db"
|
||||
|
||||
// ColumnNameFunc is the function which converts a struct field name to a database column name.
|
||||
type ColumnNameFunc = func(string) string
|
||||
|
||||
func convertStructToColumns(typ reflect.Type, nameFunc ColumnNameFunc) (map[string]*Column, error) {
|
||||
|
||||
@@ -80,6 +80,7 @@ func BackwardsToMonday(end time.Time) []time.Time {
|
||||
return dates
|
||||
}
|
||||
|
||||
// GetWeekDate returns the date of the given weekday (monday, tuesday, etc.) of the current week.
|
||||
func GetWeekDate(now time.Time, weekday, start, end time.Weekday) time.Time {
|
||||
dates := GetWeekdays(now, start, end)
|
||||
for _, d := range dates {
|
||||
|
||||
Reference in New Issue
Block a user