octopus/statics/static.go
2023-03-22 22:45:17 +08:00

19 lines
336 B
Go

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)
}