Go: fix warnings (#17738)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-03 21:30:01 +08:00
committed by GitHub
parent d357eea8ef
commit 86021932ae
103 changed files with 437 additions and 439 deletions

View File

@@ -14,13 +14,12 @@
// limitations under the License.
//
// Internal chunk execution entrypoint used by production callers.
package chunk
import "fmt"
// Run executes the internal chunk steps against `text` using typed
// options. The sequence is preprocess -> split -> postprocess.
// options. The sequence is pre-process -> split -> postprocess.
func Run(text string, opts ChunkOptions) (*ChunkContext, error) {
if err := opts.validate(); err != nil {
return nil, err