Have got text transformations working

This commit is contained in:
Leon Mika 2025-09-06 11:26:54 +10:00
parent 9f2fa96b92
commit 41daf7cfc9
14 changed files with 178 additions and 17 deletions

16
models.go Normal file
View file

@ -0,0 +1,16 @@
package main
type TextSpan struct {
Text string `json:"text"`
Pos int `json:"pos"`
Len int `json:"len"`
}
type ProcessTextRequest struct {
Action string `json:"action"`
Input []TextSpan `json:"input"`
}
type ProcessTextResponse struct {
Output []TextSpan `json:"output"`
}