octopus/statics/static.go

19 lines
336 B
Go
Raw Normal View History

2023-03-22 22:45:17 +08:00
package statics
import (
_ "embed"
"octopus"
"strings"
)
//go:embed description.md
var description string
//go:embed debugger.html
var DebuggerHTML string
func GenDescription() string {
replacer := strings.NewReplacer("{build_time}", octopus.BuildTime, "{go_version}", octopus.GoVersion)
return replacer.Replace(description)
}