19 lines
336 B
Go
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)
|
|
}
|