add go version

This commit is contained in:
Dax Raad
2025-06-06 23:26:11 -04:00
parent a23908a136
commit b683b4e51e
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -2,6 +2,7 @@ package main
import (
"context"
"fmt"
"log/slog"
"os"
"path/filepath"
@@ -16,7 +17,10 @@ import (
"github.com/sst/opencode/pkg/client"
)
var Version = "dev"
func main() {
fmt.Println(Version)
url := os.Getenv("OPENCODE_SERVER")
httpClient, err := client.NewClientWithResponses(url)
if err != nil {