DefaultRuntimeConfig 默认配置
()
| 53 | |
| 54 | // DefaultRuntimeConfig 默认配置 |
| 55 | func DefaultRuntimeConfig() *RuntimeConfig { |
| 56 | return &RuntimeConfig{ |
| 57 | Timeout: 30 * time.Second, |
| 58 | WorkDir: os.TempDir(), |
| 59 | Env: make(map[string]string), |
| 60 | MaxOutput: 1024 * 1024, // 1MB |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // PythonRuntime Python 运行时 |
| 65 | type PythonRuntime struct { |
no outgoing calls
no test coverage detected