From a46c46657cdb5c914c34d421dc60455de32dd162 Mon Sep 17 00:00:00 2001 From: hyorigo <67533928+hyorigo@users.noreply.github.com> Date: Fri, 21 Jul 2023 16:50:39 +0800 Subject: [PATCH] [feat] Disable Input/Output Starlight Conversion (#38) * Strip * For input conversion * Hack for convert * For starlight 5 * For cmd update * For conv * Adjust conv name * For better perf * convert -> cast * For internal lib testing * Set conversion enabled * Set enabled * Test conv itself * X * one converter * For testing convert * For exported --- cmd/starlet/cgi.star | 2 +- cmd/starlet/go.mod | 2 +- cmd/starlet/go.sum | 8 +-- go.mod | 4 +- go.sum | 8 +-- internal_test.go | 100 ++++++++++++++++++++++++++++ machine.go | 60 ++++++++++++----- machine_test.go | 153 +++++++++++++++++++++++++++++++++++++++++++ run.go | 51 ++++++++++++++- 9 files changed, 355 insertions(+), 33 deletions(-) create mode 100644 internal_test.go diff --git a/cmd/starlet/cgi.star b/cmd/starlet/cgi.star index e4b9a2fc..fb1c8967 100644 --- a/cmd/starlet/cgi.star +++ b/cmd/starlet/cgi.star @@ -12,6 +12,6 @@ text = '''
This is a simple CGI script written in Starlark.