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"` }