2016-11-29 21:56:36 +05:30
|
|
|
|
// Copyright 2016 The Gitea Authors. All rights reserved.
|
2022-11-27 23:50:29 +05:30
|
|
|
|
// SPDX-License-Identifier: MIT
|
2016-11-29 21:56:36 +05:30
|
|
|
|
|
2021-08-24 22:17:09 +05:30
|
|
|
|
//go:build bindata
|
|
|
|
|
|
2016-11-29 21:56:36 +05:30
|
|
|
|
package public
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-24 09:55:17 +05:30
|
|
|
|
"time"
|
|
|
|
|
|
2023-04-12 15:46:45 +05:30
|
|
|
|
"code.gitea.io/gitea/modules/assetfs"
|
2022-01-07 08:03:17 +05:30
|
|
|
|
"code.gitea.io/gitea/modules/timeutil"
|
2016-11-29 21:56:36 +05:30
|
|
|
|
)
|
|
|
|
|
|
2023-04-12 15:46:45 +05:30
|
|
|
|
var _ GzipBytesProvider = (*vfsgen۰CompressedFileInfo)(nil)
|
|
|
|
|
|
2022-01-10 15:02:37 +05:30
|
|
|
|
// GlobalModTime provide a global mod time for embedded asset files
|
2022-01-07 08:03:17 +05:30
|
|
|
|
func GlobalModTime(filename string) time.Time {
|
|
|
|
|
return timeutil.GetExecutableModTime()
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-12 15:46:45 +05:30
|
|
|
|
func BuiltinAssets() *assetfs.Layer {
|
|
|
|
|
return assetfs.Bindata("builtin(bindata)", Assets)
|
2020-12-24 09:55:17 +05:30
|
|
|
|
}
|