feat: docs api design

This commit is contained in:
neo-f
2023-03-22 22:45:17 +08:00
commit 084d0de8bc
52 changed files with 3420 additions and 0 deletions

18
statics/static.go Normal file
View 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)
}