cloudwego / cloudwego/eino-ext
style: 22 tracked Go files do not pass gofmt
- Dominant language
- Go
- Stars
- 811
- Forks
- 368
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 13
Description
## Description
A canonical-blob check of current `main` (`6752ff8da9b1ea85c8e91b27b0a64fef099f22f9`) finds 22 tracked Go files whose content changes under `gofmt`. The result is identical with Go 1.25.6 (the CI version) and Go 1.26.3.
This conflicts with the contributor guide's `gofmt` requirement and the repository's `.golangci.yaml`, which enables the `gofmt` linter. The golangci-lint workflow is currently commented out, so CI does not catch the drift.
Affected files:
```text
callbacks/cozeloop/convert_test.go
components/document/loader/url/url.go
components/indexer/milvus/consts.go
components/indexer/milvus/indexer.go
components/indexer/milvus/indexer_test.go
components/indexer/milvus/types.go
components/model/agenticark/convertor_test.go
components/model/agenticark/examples/generate/main.go
components/model/agenticark/message_extra.go
components/model/agenticclaude/extension_test.go
components/model/agenticgemini/model_test.go
components/model/claude/claude.go
components/model/claude/message_extra.go
components/retriever/milvus/retriever.go
components/tool/searxng/examples/main.go
components/tool/searxng/searxng_test.go
components/tool/sequentialthinking/examples/main.go
components/tool/sequentialthinking/sequentialthinking_test.go
devops/internal/model/container.go
libs/acl/openai/agentic_convert.go
libs/acl/openai/agentic_convert_test.go
libs/acl/openai/message_extra_test.go
```
The differences include trailing whitespace, import ordering, composite-literal indentation, and alignment.
## Reproduction
Run `gofmt` against the canonical Git blob bytes for all tracked `*.go` files and compare its output byte-for-byte. Result: 748 checked, 22 changed, 0 parse errors.
## Expected behavior
All tracked Go source should already match `gofmt` output.
Contributor guide
Research direction
Start with the 22 Go files listed in the issue and the repository's contributor guide and .golangci.yaml. Reproduce the check by comparing tracked *.go files with gofmt output using the stated Go versions, then verify that all 748 files produce no changes and that the listed files are clean.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100