diff options
| author | Shulhan <ms@kilabit.info> | 2021-08-09 02:08:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-08-09 10:38:22 +0700 |
| commit | 55dc6814275bb1a0e1df1d513ceb772716944f22 (patch) | |
| tree | cd1a9e50b677f680d79e1791a827974a9bc782e3 /script_example_test.go | |
| parent | 48c1cd3d6700bd13dc1ac8f9ad0c2b655e30e570 (diff) | |
| download | awwan-55dc6814275bb1a0e1df1d513ceb772716944f22.tar.xz | |
all: rewrite the join statements function on Script
Some enhancements and fixes,
* Trim the spaces on each statement before checking for continued line
* Trim the spaces on continued line
* Set the empty lines to nil, to minimize memory usage
Diffstat (limited to 'script_example_test.go')
| -rw-r--r-- | script_example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script_example_test.go b/script_example_test.go index 12bac7f..94cd23c 100644 --- a/script_example_test.go +++ b/script_example_test.go @@ -31,7 +31,7 @@ end; log.Fatal(err) } - for _, stmt := range s.Statements { + for _, stmt := range s.statements { fmt.Printf("%s\n", stmt) } // Output: |
