Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

go fmt

Michael Yang2ce1793a1d40
diff --git a/examples/golang-simplegenerate/main.go b/examples/golang-simplegenerate/main.go
index 9b60acef4..26e3bc6dd 100644
--- a/examples/golang-simplegenerate/main.go
+++ b/examples/golang-simplegenerate/main.go
@@ -3,10 +3,10 @@ package main
import (
"bytes"
"fmt"
- "net/http"
- "os"
"io"
"log"
+ "net/http"
+ "os"
)
func main() {
@@ -16,7 +16,7 @@ func main() {
if err != nil {
fmt.Print(err.Error())
os.Exit(1)
- }
+ }
responseData, err := io.ReadAll(resp.Body)
if err != nil {
diff --git a/format/time_test.go b/format/time_test.go
index b4e2db535..cc6b89304 100644
--- a/format/time_test.go
+++ b/format/time_test.go
@@ -29,7 +29,7 @@ func TestHumanTime(t *testing.T) {
})
t.Run("soon", func(t *testing.T) {
- v := now.Add(800*time.Millisecond)
+ v := now.Add(800 * time.Millisecond)
assertEqual(t, HumanTime(v, ""), "Less than a second from now")
})
}