commit 8f5eaf7d60618af21903edca4a4a78383b94895c
parent cf0802ac6d2fbe6a0b85475bfe9b5738e33f9819
Author: Damian Myrda <damian@prime8.dev>
Date: Thu, 22 Oct 2026 22:11:13 +0000
web: drop setup and langs from curl
Diffstat:
1 file changed, 0 insertions(+), 20 deletions(-)
diff --git a/cmd/server/handlers/curl.go b/cmd/server/handlers/curl.go
@@ -3,7 +3,6 @@ package handlers
import (
"fmt"
"net/http"
- "strconv"
"strings"
"sync"
"time"
@@ -57,15 +56,7 @@ func terminalFetch(about config.About, job *config.Experience) string {
row("location", about.Location),
row("uptime", utils.Uptime(config.Birthday, time.Now())),
}
- for _, kv := range about.Setup {
- lines = append(lines, row(kv.Key, kv.Value))
- }
- langs := make([]string, len(about.Languages))
- for i, l := range about.Languages {
- langs[i] = hexFG(utils.TagColor(l)) + l + ansiReset
- }
lines = append(lines,
- row("langs", strings.Join(langs, ", ")),
row("email", ansiBlue+"damian@prime8.dev"+ansiReset),
row("web", ansiBlue+"https://prime8.dev"+ansiReset),
"",
@@ -94,14 +85,3 @@ func terminalFetch(about config.About, job *config.Experience) string {
b.WriteString("\n")
return b.String()
}
-
-func hexFG(hex string) string {
- if len(hex) != 7 || hex[0] != '#' {
- return ""
- }
- v, err := strconv.ParseUint(hex[1:], 16, 32)
- if err != nil {
- return ""
- }
- return fmt.Sprintf("\x1b[38;2;%d;%d;%dm", v>>16, v>>8&0xff, v&0xff)
-}