Skip to content

feat: add support for go language#21

Merged
mattiacerutti merged 1 commit intomainfrom
feat/add-go
Jan 25, 2026
Merged

feat: add support for go language#21
mattiacerutti merged 1 commit intomainfrom
feat/add-go

Conversation

@mattiacerutti
Copy link
Copy Markdown
Owner

@mattiacerutti mattiacerutti commented Jan 25, 2026

Resolves #20

Summary by CodeRabbit

  • New Features
    • Added support for the Go programming language, enabling syntax highlighting and code parsing for Go files within the application.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 25, 2026

Walkthrough

Adds Go language support to the codebase by introducing the tree-sitter-go dependency, configuring it as a server-external package, registering Go in the parser factory's language switch, and adding Go to the supported languages database seed.

Changes

Cohort / File(s) Summary
Dependency Setup
package.json, next.config.ts
Adds tree-sitter-go@^0.20.0 as a new dependency and registers it in the Next.js serverExternalPackages array for server-side builds.
Parser Integration
lib/snippets/parsing/parser-factory.ts
Imports tree-sitter-go (with ts-expect-error) and adds a new "go" case in the language switch to return the Go language binding.
Language Registration
prisma/seed/languages.ts
Adds a new Go language entry to SUPPORTED_LANGUAGES with id "go", name "Go", file extension ["go"], and highlight alias "go".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely summarizes the main change: adding Go language support across the codebase.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mattiacerutti mattiacerutti changed the title feat: add support for go language (#20) feat: add support for go language Jan 25, 2026
@mattiacerutti mattiacerutti merged commit bf7f256 into main Jan 25, 2026
4 checks passed
@mattiacerutti mattiacerutti deleted the feat/add-go branch January 25, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding support for golang - Feature request

1 participant