QNTX includes Go code editing capabilities with gopls LSP integration.
Here's a simple Go program to test the ```go code block integration:
package main
import "fmt"
// greet returns a greeting message
func greet(name string) string {
return fmt.Sprintf("Hello, %s!", name)
}
func main() {
message := greet("World")
fmt.Println(message)
}
/goplsTo test manually:
The Go code blocks are implemented similar to ATS code blocks:
web/ts/prose/nodes/go-code-block.ts - CodeMirror NodeViewweb/ts/prose/schema.ts - ProseMirror schema definitionweb/ts/prose/markdown.ts - Markdown parser/serializercode/gopls/ - Go LSP server integration