diff options
| author | Shulhan <ms@kilabit.info> | 2024-12-07 13:58:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-12-07 13:58:11 +0700 |
| commit | 632c367b5ad48df8d223bab64daf2e23ceaccabb (patch) | |
| tree | 735f2df75619bc510640feea670ec9cd877ca9de /lib/http/server_test.go | |
| parent | bf84dfaca99f0b9c15afb705ab8bb6b92867818f (diff) | |
| download | pakakeh.go-0.58.1.tar.xz | |
Release pakakeh.go v0.58.1 (2024-12-07)v0.58.1
=== Enhancements
* lib/play: add custom request to run unsafe directory directly
As exceptional, the Run and HTTPHandleRun accept the following
request for running program inside custom "go.mod",
{
"unsafe_run": <path>
}
The "unsafe_run" define the path to directory relative to HTTP
server working directory. Once request accepted it will change the
directory into "unsafe_run" first and then run "go run ." directly.
Go code that executed inside "unsafe_run" should be not modifiable and
safe from mallicious execution.
* lib/play: add option to Run with specific Go version and without race
The idea is to allow testing Go code on specific Go version.
For example, before Go 1.22, the for loop with variable is shared
among block statements, which cause every use of that variable is run
with the last value.
* lib/play: expose the Timeout variable
By exposing the Timeout, user can set their maximum time the program
can run in their playground.
Diffstat (limited to 'lib/http/server_test.go')
0 files changed, 0 insertions, 0 deletions
