mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
replace ioutil with io package and other minor improvements
This commit is contained in:
@@ -34,12 +34,13 @@ type Options struct {
|
||||
// for security reasons.
|
||||
//
|
||||
// Example Code:
|
||||
// app.Get("/health", modrevision.New(modrevision.Options{
|
||||
// ServerName: "Iris Server",
|
||||
// Env: "development",
|
||||
// Developer: "kataras",
|
||||
// TimeLocation: time.FixedZone("Greece/Athens", 10800),
|
||||
// }))
|
||||
//
|
||||
// app.Get("/health", modrevision.New(modrevision.Options{
|
||||
// ServerName: "Iris Server",
|
||||
// Env: "development",
|
||||
// Developer: "kataras",
|
||||
// TimeLocation: time.FixedZone("Greece/Athens", 7200),
|
||||
// }))
|
||||
func New(opts Options) context.Handler {
|
||||
buildTime, buildRevision := context.BuildTime, context.BuildRevision
|
||||
if opts.UnixTime {
|
||||
|
||||
Reference in New Issue
Block a user