bruh wtf 33 da hell man

This commit is contained in:
echo 2022-09-25 22:20:20 +03:30 committed by nea
parent 7e760950db
commit 9a98330276
No known key found for this signature in database
GPG key ID: AA563E93EB628D91
33 changed files with 380 additions and 17 deletions

28
asciiarts/asciiart.go Normal file
View file

@ -0,0 +1,28 @@
package asciiarts
import (
_ "embed"
"strings"
)
//go:embed alpine.txt
var Alpine string
//go:embed unknown.txt
var unknown string
func GetAsciiInternal(distroID string) string {
switch distroID {
case "Alpine":
return Alpine
default:
return unknown
}
}
func GetAscii(distroID string) string {
ascii := GetAsciiInternal(distroID)
ascii = strings.ReplaceAll(ascii, "{WHITE}", "")
ascii = strings.ReplaceAll(ascii, "{YELLOW}", "")
ascii = strings.ReplaceAll(ascii, "{BLUE}", "")
return ascii
}