forked from forgejo/forgejo
Don't store assets modified time into generated files (#18193)
This commit is contained in:
parent
21ed4fd8da
commit
a1c12fb0b3
11 changed files with 110 additions and 22 deletions
4
vendor/github.com/shurcooL/vfsgen/options.go
generated
vendored
4
vendor/github.com/shurcooL/vfsgen/options.go
generated
vendored
|
@ -26,6 +26,10 @@ type Options struct {
|
|||
// VariableComment is the comment of the http.FileSystem variable in the generated code.
|
||||
// If left empty, it defaults to "{{.VariableName}} statically implements the virtual filesystem provided to vfsgen.".
|
||||
VariableComment string
|
||||
|
||||
// UseGlobalModTime indicates that not retrieve files' modified time if it's true. Once this
|
||||
// is true, you have to define a function GlobalModTime(filename string) time.Time in the same package of generated files
|
||||
UseGlobalModTime bool
|
||||
}
|
||||
|
||||
// fillMissing sets default values for mandatory options that are left empty.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue