RunMain is used internally by generated code and should not be called directly.
()
| 120 | |
| 121 | // RunMain is used internally by generated code and should not be called directly. |
| 122 | func RunMain() { |
| 123 | closeOnStdin := os.Getenv(TsunamiCloseOnStdinEnvVar) != "" |
| 124 | |
| 125 | if closeOnStdin { |
| 126 | go func() { |
| 127 | // Read stdin until EOF/close, then exit the process |
| 128 | io.Copy(io.Discard, os.Stdin) |
| 129 | log.Printf("[tsunami] shutting down due to close of stdin\n") |
| 130 | os.Exit(0) |
| 131 | }() |
| 132 | } |
| 133 | |
| 134 | engine.GetDefaultClient().RunMain() |
| 135 | } |
| 136 | |
| 137 | // RegisterEmbeds is used internally by generated code and should not be called directly. |
| 138 | func RegisterEmbeds(assetsFilesystem fs.FS, staticFilesystem fs.FS, manifest []byte) { |
nothing calls this directly
no test coverage detected