mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 10:47:20 +00:00
Add an example for httprouter_test, gofmt everything and misspel fixes.
Former-commit-id: e69ffdf9bba4c7e8c3df45c015b3363cc3fc59b6
This commit is contained in:
@@ -169,7 +169,7 @@ type Configuration struct {
|
||||
DisableBodyConsumptionOnUnmarshal bool `yaml:"DisableBodyConsumptionOnUnmarshal"`
|
||||
|
||||
// TimeFormat time format for any kind of datetime parsing
|
||||
// Defauls to "Mon, 02 Jan 2006 15:04:05 GMT".
|
||||
// Defaults to "Mon, 02 Jan 2006 15:04:05 GMT".
|
||||
TimeFormat string `yaml:"TimeFormat"`
|
||||
|
||||
// Charset character encoding for various rendering
|
||||
@@ -324,7 +324,7 @@ var (
|
||||
}
|
||||
|
||||
// OptionTimeFormat time format for any kind of datetime parsing.
|
||||
// Defauls to "Mon, 02 Jan 2006 15:04:05 GMT".
|
||||
// Defaults to "Mon, 02 Jan 2006 15:04:05 GMT".
|
||||
OptionTimeFormat = func(val string) OptionSet {
|
||||
return func(c *Configuration) {
|
||||
c.TimeFormat = val
|
||||
|
||||
Reference in New Issue
Block a user