diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-13 10:08:56 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-13 10:08:56 +0200 |
| commit | cd57f5a015ae943e57fafd84136d58799de040a3 (patch) | |
| tree | 0aa15358aece9bbc520e785c4182f0a89a63db0f /internal | |
| parent | 37be3c5b60ad39f5b34be91a45ee7f97a7c41b9d (diff) | |
increase max link len
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/platforms/platform.go | 1 | ||||
| -rw-r--r-- | internal/summary/summary.go | 2 | ||||
| -rw-r--r-- | 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) } |
