Redo router and use chi, implement anchor file

This commit is contained in:
Ben Sarmiento
2024-01-08 21:13:35 +01:00
parent 122eea2374
commit 96e41d6cbc
11 changed files with 352 additions and 295 deletions

29
internal/version/file.go Normal file
View File

@@ -0,0 +1,29 @@
package version
import (
"fmt"
"strings"
)
const FILE = "version.txt"
func GetFile() ([]byte, int64) {
versionStr := fmt.Sprintf(" version: %s", GetVersion())
out := "\n"
out += " █████████ █████ ████ ████████ ███████\n"
out += "░█░░░░███ ░░███ ░███ ░░███░░███ ███░░███\n"
out += "░ ███░ ░███ ░███ ░███ ░░░ ░███ ░███\n"
out += " ███░ █ ░███ ░███ ░███ ░███ ░███\n"
out += " █████████ ░░████████ █████ ░░███████\n"
out += "░░░░░░░░░ ░░░░░░░░ ░░░░░ ░░░░░███\n"
out += " ███ ░███\n"
out += versionStr + strings.Repeat(" ", 31-len(versionStr))
out += "░░██████ \n"
out += " ░░░░░░ \n"
out += "\n⟡ support zurg today ⟡\n\n"
out += "Patreon: https://www.patreon.com/debridmediamanager\n"
out += "Github: https://github.com/sponsors/debridmediamanager\n"
out += "Paypal: https://paypal.me/yowmamasita\n"
return []byte(out), int64(len(out))
}