code.gitea.io/gitea@v1.22.3/modules/templates/static.go (about) 1 // Copyright 2016 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 //go:build bindata 5 6 package templates 7 8 import ( 9 "time" 10 11 "code.gitea.io/gitea/modules/assetfs" 12 "code.gitea.io/gitea/modules/timeutil" 13 ) 14 15 // GlobalModTime provide a global mod time for embedded asset files 16 func GlobalModTime(filename string) time.Time { 17 return timeutil.GetExecutableModTime() 18 } 19 20 func BuiltinAssets() *assetfs.Layer { 21 return assetfs.Bindata("builtin(bindata)", Assets) 22 }