Testing languages

This commit is contained in:
2025-01-17 23:10:34 +01:00
parent 03656acb6f
commit 3247c0132a
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function App() {
useEffect(() => { useEffect(() => {
(async function() { (async function() {
const response = await fetch(`${import.meta.env.VITE_API_URL}/generate?lang=typescript&lines=20`); const response = await fetch(`${import.meta.env.VITE_API_URL}/generate?lang=scala&lines=20`);
const reader = response.body.getReader(); const reader = response.body.getReader();
const decoder = new TextDecoder(); const decoder = new TextDecoder();
-1
View File
@@ -108,7 +108,6 @@ func main() {
cleaned := parser.ParseStream(chunk) cleaned := parser.ParseStream(chunk)
if len(cleaned) > 0 { if len(cleaned) > 0 {
fmt.Println(chunk, string(chunk))
ctx.Response().Write(cleaned) ctx.Response().Write(cleaned)
ctx.Response().Flush() ctx.Response().Flush()
} }