feat: docs api design
This commit is contained in:
18
statics/static.go
Normal file
18
statics/static.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user