[PR #10067] [MERGED] chore(all): replace instances of interface{} with any #13136

Closed
opened 2026-04-13 00:18:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10067
Author: @BruceMacD
Created: 3/31/2025
Status: Merged
Merged: 4/2/2025
Merged by: @BruceMacD

Base: mainHead: brucemacd/interface-any


📝 Commits (1)

  • eb5d9f5 chore(all): replace instances of interface with any

📊 Changes

19 files changed (+58 additions, -58 deletions)

View changed files

📝 api/types.go (+11 -11)
📝 api/types_test.go (+1 -1)
📝 benchmark/server_benchmark_test.go (+2 -2)
📝 cmd/cmd.go (+2 -2)
📝 convert/sentencepiece/sentencepiece_model.pb.go (+7 -7)
📝 discover/cpu_common.go (+1 -1)
📝 format/time_test.go (+1 -1)
📝 integration/basic_test.go (+4 -4)
📝 integration/concurrency_test.go (+2 -2)
📝 integration/context_test.go (+2 -2)
📝 integration/llm_image_test.go (+3 -3)
📝 integration/llm_test.go (+2 -2)
📝 integration/max_queue_test.go (+1 -1)
📝 integration/utils_test.go (+5 -5)
📝 openai/openai.go (+5 -5)
📝 openai/openai_test.go (+1 -1)
📝 server/images.go (+1 -1)
📝 server/routes.go (+3 -3)
📝 server/sched.go (+4 -4)

📄 Description

Both interface{} and any (which is just an alias for interface{} introduced in Go 1.18) represent the empty interface that all types satisfy.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10067 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/31/2025 **Status:** ✅ Merged **Merged:** 4/2/2025 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/interface-any` --- ### 📝 Commits (1) - [`eb5d9f5`](https://github.com/ollama/ollama/commit/eb5d9f52ad6d19abe6fd7032a4b4f564e4dd2dd8) chore(all): replace instances of interface with any ### 📊 Changes **19 files changed** (+58 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+11 -11) 📝 `api/types_test.go` (+1 -1) 📝 `benchmark/server_benchmark_test.go` (+2 -2) 📝 `cmd/cmd.go` (+2 -2) 📝 `convert/sentencepiece/sentencepiece_model.pb.go` (+7 -7) 📝 `discover/cpu_common.go` (+1 -1) 📝 `format/time_test.go` (+1 -1) 📝 `integration/basic_test.go` (+4 -4) 📝 `integration/concurrency_test.go` (+2 -2) 📝 `integration/context_test.go` (+2 -2) 📝 `integration/llm_image_test.go` (+3 -3) 📝 `integration/llm_test.go` (+2 -2) 📝 `integration/max_queue_test.go` (+1 -1) 📝 `integration/utils_test.go` (+5 -5) 📝 `openai/openai.go` (+5 -5) 📝 `openai/openai_test.go` (+1 -1) 📝 `server/images.go` (+1 -1) 📝 `server/routes.go` (+3 -3) 📝 `server/sched.go` (+4 -4) </details> ### 📄 Description Both interface{} and any (which is just an alias for interface{} introduced in Go 1.18) represent the empty interface that all types satisfy. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:18:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13136