From cd57f5a015ae943e57fafd84136d58799de040a3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 13 Feb 2025 10:08:56 +0200 Subject: increase max link len --- internal/platforms/platform.go | 1 - internal/summary/summary.go | 2 +- internal/version.go | 9 ++++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/platforms/platform.go b/internal/platforms/platform.go index 6cc0ce5..874c35d 100644 --- a/internal/platforms/platform.go +++ b/internal/platforms/platform.go @@ -61,7 +61,6 @@ func (p Platform) Post(ctx context.Context, args config.Args, sizeLimit int, en } func ExpandAliases(shareTag string) (string, error) { - parts := strings.Split(shareTag, ":") if parts[0] != "share" { return "", fmt.Errorf("expected share tag, but got '%s' in '%s'", parts[0], shareTag) diff --git a/internal/summary/summary.go b/internal/summary/summary.go index f943754..0eaea5a 100644 --- a/internal/summary/summary.go +++ b/internal/summary/summary.go @@ -72,7 +72,7 @@ func generateGemtext(args config.Args, entries []entry.Entry, title string) (str sb.WriteString("\n") for _, url := range urls { sb.WriteString("\n") - sb.WriteString(gemtextLink(args.GeminiCapsules, url, 30)) + sb.WriteString(gemtextLink(args.GeminiCapsules, url, 100)) } } } diff --git a/internal/version.go b/internal/version.go index 7bc24e9..f85ab9f 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,6 +1,8 @@ package internal -import "codeberg.org/snonux/gos/internal/table" +import ( + "codeberg.org/snonux/gos/internal/table" +) const versionStr = "v0.0.4" @@ -9,4 +11,9 @@ func printVersion() { Header("Gos version", "Author", "URL"). Row(versionStr, "Paul Buetow", "https://codeberg.org/snonux/gos"). MustRender() + + // TODO: Make this work (based on git tag?) From Go 1.24! + // info, _ := debug.ReadBuildInfo() + // fmt.Println("Go version:", info.GoVersion) + // fmt.Println("App version:", info.Main.Version) } -- cgit v1.2.3