mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-29 03:25:11 +02:00
- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`. - Resolves forgejo/discussions#258 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
24 lines
524 B
Go
24 lines
524 B
Go
// Copyright 2016 The Gitea Authors. All rights reserved.
|
||
// SPDX-License-Identifier: MIT
|
||
|
||
//go:build bindata
|
||
|
||
package public
|
||
|
||
import (
|
||
"time"
|
||
|
||
"forgejo.org/modules/assetfs"
|
||
"forgejo.org/modules/timeutil"
|
||
)
|
||
|
||
var _ GzipBytesProvider = (*vfsgen۰CompressedFileInfo)(nil)
|
||
|
||
// GlobalModTime provide a global mod time for embedded asset files
|
||
func GlobalModTime(filename string) time.Time {
|
||
return timeutil.GetExecutableModTime()
|
||
}
|
||
|
||
func BuiltinAssets() *assetfs.Layer {
|
||
return assetfs.Bindata("builtin(bindata)", Assets)
|
||
}
|