Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenInBrowser ¶
OpenInBrowser opens given URL in your default browser.
func RunUntilEndpointHit ¶
func RunUntilEndpointHit() error
RunUntilEndpointHit stalls current goroutine executions and prints the URL to local address. When URL is hit this function returns with nil to continue the execution. It also watches for SIGINT, SIGKILL or SIGHUP signals and does the same when any of those is seen.
This function is useful when you want to interact with e2e tests and manually decide when to finish. Use this function as opposed to RunUntilSignal for certain IDEs that does not send correct signal on stop (e.g. Goland pre 2022.3, see https://youtrack.jetbrains.com/issue/GO-5982).
func RunUntilEndpointHitWithPort ¶
RunUntilEndpointHitWithPort is like RunUntilEndpointHit, but it allows specifying static port.
func RunUntilSignal ¶
func RunUntilSignal()
RunUntilSignal stops the current goroutine execution and watches for SIGINT, SIGKILL and SIGHUP signals. Once spotted it continues the execution. This function is useful when you want to interact with e2e tests and manually decide when to finish.
Types ¶
This section is empty.